![]() |
IOLink 1.16.1
|
Static Public Member Functions | |
| static std::shared_ptr< TensorView > | allocate (const VectorXu64 &shape, DataType dtype) |
| Allocate a new tensor in memory with the given shape and data type. | |
| static std::shared_ptr< TensorView > | fromImage (const std::shared_ptr< ImageView > &src) |
| Create a TensorView from an ImageView. | |
| static std::shared_ptr< TensorView > | fromDataFrame (const std::shared_ptr< DataFrameView > &src) |
| Create a TensorView from a DataFrameView. | |
|
static |
Allocate a new tensor in memory with the given shape and data type.
| shape | The shape of the tensor to allocate. |
| dtype | The data type of the tensor to allocate. |
|
static |
Create a TensorView from a DataFrameView.
This method adapts the DataFrameView to a TensorView, allowing the data in the DataFrame to be accessed as a tensor.
| src | The source DataFrameView to adapt. |
| InvalidArgument | If the source DataFrameView is invalid or if its columns do not have the same data type. |
|
static |
Create a TensorView from an ImageView.
This method adapts the ImageView to a TensorView, allowing the image data to be accessed as a tensor.
| src | The source ImageView to adapt. |
| InvalidArgument | If the source ImageView is invalid. |