24.02.1
|
SaveNumPy accessor class. More...
#include <GraphUtils.h>
Public Member Functions | |
SaveNumPyAccessor (const std::string npy_name, const bool is_fortran=false) | |
Constructor. More... | |
SaveNumPyAccessor (SaveNumPyAccessor &&)=default | |
Allow instances of this class to be move constructed. More... | |
SaveNumPyAccessor (const SaveNumPyAccessor &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
SaveNumPyAccessor & | operator= (const SaveNumPyAccessor &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
bool | access_tensor (ITensor &tensor) override |
Interface to be implemented to access a given tensor. More... | |
Public Member Functions inherited from ITensorAccessor | |
virtual | ~ITensorAccessor ()=default |
Default virtual destructor. More... | |
virtual bool | access_tensor_data () |
Returns true if the tensor data is being accessed. More... | |
SaveNumPy accessor class.
Definition at line 183 of file GraphUtils.h.
SaveNumPyAccessor | ( | const std::string | npy_name, |
const bool | is_fortran = false |
||
) |
Constructor.
[in] | npy_name | Npy file name. |
[in] | is_fortran | (Optional) If true, save tensor in fortran order. |
Definition at line 250 of file GraphUtils.cpp.
|
default |
Allow instances of this class to be move constructed.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Interface to be implemented to access a given tensor.
[in] | tensor | Tensor to be accessed |
Implements ITensorAccessor.
Definition at line 255 of file GraphUtils.cpp.
References ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, arm_compute::F32, arm_compute::utils::save_to_npy(), and tensor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)