|
| Tensor ()=delete |
|
| Tensor (const ir::OperandInfo &info) |
|
bool | applyShape (const ir::Shape &) override |
| Set the shape to shape and possibly re-allocate the buffer.
|
|
| Tensor ()=delete |
|
virtual | ~Tensor () |
|
| Tensor (const ir::OperandInfo &info, DynamicMemoryManager *dynamic_mem_mgr) |
|
void | setBuffer (uint8_t *buffer) |
| Set the Buffer object. This method is called for static and non-const tensor.
|
|
void | setBuffer (const std::shared_ptr< Allocator > &alloc) |
| Set the Buffer object. This method is called for dynamic or const tensor.
|
|
void | deallocBuffer () override |
| Reset the buffer and deallocate the allocation if it is managed by itself.
|
|
uint8_t * | buffer () const override |
|
void | set_dynamic () override |
| set this tensor dynamic
|
|
virtual void | increase_ref () |
|
virtual void | decrease_ref () |
|
virtual void | reset_ref () |
| Reset reference count to zero and release data.
|
|
virtual int32_t | num_references () |
|
void | setShape (const ir::Shape &new_shape) override |
| Set the shape of tenser to new_shape.
|
|
| IPortableTensor (const ir::OperandInfo &info) |
|
virtual | ~IPortableTensor () |
|
const ir::OperandInfo & | get_info () const |
|
const ir::Sparsity * | sparsity () const |
|
size_t | total_size () const override final |
|
size_t | calcOffset (const ir::Coordinates &coords) const override final |
|
ir::DataType | data_type () const override final |
|
float | data_scale () const override final |
|
int32_t | data_zero_point () const override final |
|
const std::vector< float > & | data_scales () const override final |
|
const std::vector< int32_t > & | data_zero_points () const override |
|
bool | is_constant () const override final |
| Return true if the tensor is constant.
|
|
bool | is_dynamic () const override final |
| Return true if the tensor needs dynamic allocation, meaning that during compile-time the outpus shape cannot be known and the output shape is calculated during kernel execution-time.
|
|
ir::Shape | getShape () const override final |
| Get ir::Shape of tensor.
|
|
bool | has_padding () const final |
|
void | access (const std::function< void(ITensor &tensor)> &fn) final |
|
virtual | ~ITensor () |
|
virtual bool | is_subtensor () const |
|
virtual bool | needMemoryMap () const |
|
virtual void | enqueueWriteBuffer (const void *, bool) |
|
virtual void | enqueueReadBuffer (void *, bool) |
|