ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnkit::support::caffe::BlobContext< DType > Struct Template Referenceabstract

#include <BlobContext.h>

Public Member Functions

virtual ~BlobContext ()=default
 
virtual uint32_t size (void) const =0
 
virtual std::string name (uint32_t n) const =0
 
virtual ::caffe::Blob< DType > * blob (uint32_t n)=0
 
DType * region (uint32_t n)
 

Detailed Description

template<typename DType>
struct nnkit::support::caffe::BlobContext< DType >

Definition at line 29 of file BlobContext.h.

Constructor & Destructor Documentation

◆ ~BlobContext()

template<typename DType >
virtual nnkit::support::caffe::BlobContext< DType >::~BlobContext ( )
virtualdefault

Member Function Documentation

◆ blob()

template<typename DType >
virtual ::caffe::Blob< DType > * nnkit::support::caffe::BlobContext< DType >::blob ( uint32_t  n)
pure virtual

◆ name()

template<typename DType >
virtual std::string nnkit::support::caffe::BlobContext< DType >::name ( uint32_t  n) const
pure virtual

◆ region()

template<typename DType >
DType * nnkit::support::caffe::BlobContext< DType >::region ( uint32_t  n)
inline

Definition at line 38 of file BlobContext.h.

38{ return blob(n)->mutable_cpu_data(); }
virtual ::caffe::Blob< DType > * blob(uint32_t n)=0

References nnkit::support::caffe::BlobContext< DType >::blob().

◆ size()

template<typename DType >
virtual uint32_t nnkit::support::caffe::BlobContext< DType >::size ( void  ) const
pure virtual

The documentation for this struct was generated from the following file: