23.05
|
Go to the documentation of this file.
35 virtual const void*
Map(
bool blocking=
true)
const = 0;
38 virtual void Unmap()
const = 0;
43 void*
Map(
bool blocking=
true)
45 return const_cast<void*
>(
static_cast<const ITensorHandle*
>(
this)->
Map(blocking));
65 virtual void CopyOutTo(
void* memory)
const = 0;
66 virtual void CopyInFrom(
const void* memory) = 0;
virtual void Manage()=0
Indicate to the memory manager that this resource is active.
virtual TensorShape GetShape() const =0
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest ite...
virtual TensorShape GetStrides() const =0
Get the strides for each dimension ordered from largest to smallest where the smallest value is the s...
virtual void Unimport()
Unimport externally allocated memory.
void Unmap()
Unmap the tensor data that was previously mapped with call to Map().
void IgnoreUnused(Ts &&...)
Copyright (c) 2021 ARM Limited and Contributors.
virtual bool Import(void *memory, MemorySource source)
Import externally allocated memory.
virtual const void * Map(bool blocking=true) const =0
Map the tensor data for access.
void * Map(bool blocking=true)
Map the tensor data for access.
MemorySource
Define the Memory Source to reduce copies.
virtual void CopyOutTo(void *memory) const =0
Testing support to be able to verify and set tensor data content.
virtual void Allocate()=0
Indicate to the memory manager that this resource is no longer active.
virtual ITensorHandle * GetParent() const =0
Get the parent tensor if this is a subtensor.
virtual void CopyInFrom(const void *memory)=0
virtual unsigned int GetImportFlags() const
Get flags describing supported import sources.
virtual bool CanBeImported(void *memory, MemorySource source)
Implementations must determine if this memory block can be imported.
virtual void Unmap() const =0
Unmap the tensor data.