GstAnalytics.Tensor¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
data  | 
r/w  | 
  | 
|
data_type  | 
r/w  | 
  | 
|
dims  | 
[  | 
r/w  | 
number of tensor dimensions  | 
dims_order  | 
r/w  | 
Indicate tensor elements layout in memory.  | 
|
id  | 
r/w  | 
semantically identify the contents of the tensor  | 
|
layout  | 
r/w  | 
Indicate tensor layout  | 
|
num_dims  | 
r/w  | 
number of tensor dimensions  | 
Methods¶
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
Details¶
- class GstAnalytics.Tensor¶
 Hold tensor data
New in version 1.26.
- classmethod alloc(num_dims)¶
 - Parameters:
 num_dims (
int) – Number of dimension of the tensors- Returns:
 tensor allocated
- Return type:
 
Allocate a tensor with num_dims dimensions.
New in version 1.26.
- classmethod new_simple(id, data_type, data, dims_order, dims)¶
 - Parameters:
 id (
int) – semantically identify the contents of the tensordata_type (
GstAnalytics.TensorDataType) –GstAnalytics.TensorDataTypeof tensor datadata (
Gst.Buffer) –Gst.Bufferholding tensor datadims_order (
GstAnalytics.TensorDimOrder) – Indicate tensor dimension indexing orderdims ([
int]) – tensor dimensions. Value of 0 mean the dimension is dynamic.
- Returns:
 A newly allocated
GstAnalytics.Tensor- Return type:
 
Allocates a new
GstAnalytics.Tensorof dims_order ROW_MAJOR or COLUMN_MAJOR and with an interleaved layoutNew in version 1.26.
- copy()¶
 - Returns:
 a new
GstAnalytics.Tensor- Return type:
 
Create a copy of self.
New in version 1.26.
- free()¶
 Free tensor
New in version 1.26.