24.02.1
|
Numpy Binary loader class. More...
#include <GraphUtils.h>
Public Member Functions | |
NumPyBinLoader (std::string filename, DataLayout file_layout=DataLayout::NCHW) | |
Default Constructor. More... | |
NumPyBinLoader (NumPyBinLoader &&)=default | |
Allows instances to move constructed. 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... | |
Numpy Binary loader class.
Definition at line 438 of file GraphUtils.h.
NumPyBinLoader | ( | std::string | filename, |
DataLayout | file_layout = DataLayout::NCHW |
||
) |
Default Constructor.
[in] | filename | Binary file name |
[in] | file_layout | (Optional) Layout of the numpy tensor data. Defaults to NCHW |
Definition at line 785 of file GraphUtils.cpp.
|
default |
Allows instances to move constructed.
|
overridevirtual |
Interface to be implemented to access a given tensor.
[in] | tensor | Tensor to be accessed |
Implements ITensorAccessor.
Definition at line 790 of file GraphUtils.cpp.
References NPYLoader::fill_tensor(), NPYLoader::open(), and tensor.
Referenced by NumPyAccessor::NumPyAccessor().