Package org.intel.openvino
Class Tensor
- java.lang.Object
-
- org.intel.openvino.Wrapper
-
- org.intel.openvino.Tensor
-
public class Tensor extends Wrapper
Tensor API holding host memoryIt can throw exceptions safely for the application, where it is properly handled.
-
-
Constructor Summary
Constructors Constructor Description Tensor(int[] dims, float[] data)Tensor(long addr)Tensor(ElementType type, int[] dims, long cArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]data()Returns a tensor data as floating point array.protected voiddelete(long nativeObj)int[]get_shape()Returns a tensor shapeintget_size()Returns the total number of elements (a product of all the dims or 1 for scalar)-
Methods inherited from class org.intel.openvino.Wrapper
finalize, getNativeObjAddr
-
-
-
-
Constructor Detail
-
Tensor
public Tensor(long addr)
-
Tensor
public Tensor(ElementType type, int[] dims, long cArray)
-
Tensor
public Tensor(int[] dims, float[] data)
-
-