Skip to content

morapi_Tensors Struct Reference

dnn » tensor

Tensor array.
More...

#include <morapi_softneuro.h>

Public Member Functions

morapi_Result  morapi_Tensors_clear (morapi_Tensors *self)
morapi_Tensor morapi_Tensors_add (morapi_Tensors *self)
morapi_Result  morapi_Tensors_erase (morapi_Tensors *self, morapi_Int32 i_index)
morapi_Result  morapi_Tensors_copyTensor (morapi_Tensors *self, const morapi_Tensor *i_tensor)
morapi_Int32  morapi_Tensors_getNum (const morapi_Tensors *self)
morapi_Tensor morapi_Tensors_get (const morapi_Tensors *self, morapi_Int32 i_index)
morapi_Result  morapi_Tensors_cast (morapi_Tensors *self, morapi_DType i_dtype, const morapi_Tensors *i_src)


Detailed Description

Tensor array.


Member Function Documentation


morapi_Tensors_clear()

morapi_Result morapi_Tensors_clear (morapi_Tensors * self)

Clears.

Parameters

  • self : tensors object


morapi_Tensors_add()

morapi_Tensor * morapi_Tensors_add (morapi_Tensors * self)

Adds a tensor.

Parameters

  • self : tensors object


morapi_Tensors_erase()

morapi_Result morapi_Tensors_erase (morapi_Tensors * self,
                                    morapi_Int32 i_index)

Erases the tensor.

Parameters

  • self : tensors object
  • i_index : index of the tensor to be erased


morapi_Tensors_copyTensor()

morapi_Result morapi_Tensors_copyTensor (morapi_Tensors * self,
                                         const morapi_Tensor * i_tensor)

Copy a tensor (shallow copy).


morapi_Tensors_getNum()

morapi_Int32 morapi_Tensors_getNum (const morapi_Tensors * self)

Gets the number of tensors.

Parameters

  • self : tensors object


morapi_Tensors_get()

morapi_Tensor * morapi_Tensors_get (const morapi_Tensors * self,
                                    morapi_Int32 i_index)

Gets the i_index-th tensor.

Parameters

  • self : tensors object
  • i_index : index of the tensor to be gotten


morapi_Tensors_cast()

morapi_Result morapi_Tensors_cast (morapi_Tensors * self,
                                   morapi_DType i_dtype,
                                   const morapi_Tensors * i_src)

Casts.