9 #include <boost/core/ignore_unused.hpp> 36 virtual const void*
Map(
bool blocking=
true)
const = 0;
39 virtual void Unmap()
const = 0;
44 void*
Map(
bool blocking=
true)
46 return const_cast<void*
>(
static_cast<const ITensorHandle*
>(
this)->
Map(blocking));
66 virtual void CopyOutTo(
void* memory)
const = 0;
67 virtual void CopyInFrom(
const void* memory) = 0;
78 boost::ignore_unused(memory, source);
void * Map(bool blocking=true)
virtual bool Import(void *memory, MemorySource source)
virtual unsigned int GetImportFlags() const
Get flags describing supported import sources.
virtual const void * Map(bool blocking=true) const =0
virtual void CopyOutTo(void *memory) const =0
virtual TensorShape GetShape() const =0
virtual ITensorHandle * GetParent() const =0
void Unmap()
Unmap the tensor data that was previously mapped with call to Map().
virtual TensorShape GetStrides() const =0
virtual void Unmap() const =0
Unmap the tensor data.
virtual void CopyInFrom(const void *memory)=0
virtual void Allocate()=0