Method PrepareStorage
PrepareStorage(Model, IBackend, IDictionary<string, TensorShape>, bool)
Prepares storage for a given model.
Declaration
void PrepareStorage(Model model, IBackend optionalBackendToPrepareTensors = null, IDictionary<string, TensorShape> optionalInputShapes = null, bool takeoverWeights = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | The model to prepare storage of. |
| IBackend | optionalBackendToPrepareTensors | The optional backend to use. |
| IDictionary<string, TensorShape> | optionalInputShapes | The optional given input shapes for execution. |
| bool | takeoverWeights | Whether the execution can take ownership of the weights of the model. |
PrepareStorage(Layer)
Prepares storage for a given layer.
Declaration
void PrepareStorage(Layer forLayer)
Parameters
| Type | Name | Description |
|---|---|---|
| Layer | forLayer | The layer to prepare storage of. |