TIOVX User Guide
tiovx.tensor.Tensor Class Reference

Tensor object (OpenVX equivalent = vx_tensor, specifically returned from vxCreateTensor) More...

Inherits tiovx.reference.Reference.

Public Member Functions

def __init__ (self, number_of_dims, dims, data_type, fixed_point_position, access_type="Host", in_file_addr="./", out_file_addr="./", name="default")
 Constructor used to create this object. More...
 

Detailed Description

Tensor object (OpenVX equivalent = vx_tensor, specifically returned from vxCreateTensor)

Example Usage: Create a tensor object of 640x480x3
from tiovx import *
my_tensor1 = Tensor(3, [640, 480, 3], Type.UINT8, 0, name="mytensor")

Definition at line 75 of file tensor.py.

Constructor & Destructor Documentation

◆ __init__()

def tiovx.tensor.Tensor.__init__ (   self,
  number_of_dims,
  dims,
  data_type,
  fixed_point_position,
  access_type = "Host",
  in_file_addr = "./",
  out_file_addr = "./",
  name = "default" 
)

Constructor used to create this object.

See also
vxCreateTensor for more details about the parameters
Parameters
number_of_dims[in] Number of dimensions
dims[in] Comma separated list of dimensions in brackets
data_type[in] Data type. tiovx::enums::Type
fixed_point_position[in] Specifies the fixed point position when the input element type is integer. if 0, calculations are performed in integer math.
access_type[in] [optional] Memory access type
in_file_addr[in] [optional] In the case of memory accessed from file, the path to the input file
out_file_addr[in] [optional] In the case of memory outputted to file, the path to the output file
name[in] [optional] Name of the object

Definition at line 88 of file tensor.py.


The documentation for this class was generated from the following file: