Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

Tensor Constructor

Overload List

Tensor Default Constructor
Tensor(IntPtr) Constructs Tensor from the initialized pointer.
Tensor(Tensor) Default copy constructor
Tensor(OvType, Shape) Initializes a new instance of the Tensor class
Tensor(Shape, Double) Constructs Tensor using element type ,shape and input data.
Tensor(Shape, Int16) Constructs Tensor using element type ,shape and input data.
Tensor(Shape, Int32) Constructs Tensor using element type ,shape and input data.
Tensor(Shape, Int64) Constructs Tensor using element type ,shape and input data.
Tensor(Shape, Single) Constructs Tensor using element type ,shape and input data.
Tensor(Type, Shape) Constructs Tensor using element type and shape. Allocate internal host storage using default allocator
Tensor(OvType, Shape, Byte) Initializes a new instance of the Tensor class
Tensor(OvType, Shape, IntPtr) Initializes a new instance of the Tensor class
Tensor(Type, Shape, Byte) Constructs Tensor using element type ,shape and image data.
Tensor(Type, Shape, IntPtr) Constructs Tensor using element type and shape. Wraps allocated host memory.

See Also