ONE - On-device Neural Engine
Loading...
Searching...
No Matches
caffeimport Namespace Reference

Data Structures

class  BatchNormBuilder
 
class  ConcatBuilder
 
class  ConvolutionBuilder
 
class  EltwiseBuilder
 
class  GraphBuilder
 
class  GraphBuilderContext
 
class  GraphBuilderRegistry
 
class  InputBuilder
 
class  PoolingBuilder
 
class  ReLUBuilder
 
class  ScaleBuilder
 
class  WeightContext
 

Typedefs

using LayerName = std::string
 
using BlobName = std::string
 
using ShapeContext = std::map< BlobName, nncc::core::ADT::tensor::Shape >
 
using StoreContext = std::map< BlobName, coco::Bag * >
 

Functions

tensor::Shape as_tensor_shape (const ::caffe::BlobShape &blob_shape)
 
nncc::core::ADT::tensor::Shape as_tensor_shape (const ::caffe::BlobProto *blob_proto)
 

Typedef Documentation

◆ BlobName

using caffeimport::BlobName = typedef std::string

Definition at line 33 of file Context.h.

◆ LayerName

using caffeimport::LayerName = typedef std::string

Definition at line 32 of file Context.h.

◆ ShapeContext

Definition at line 35 of file Context.h.

◆ StoreContext

using caffeimport::StoreContext = typedef std::map<BlobName, coco::Bag *>

Definition at line 36 of file Context.h.

Function Documentation

◆ as_tensor_shape() [1/2]

nncc::core::ADT::tensor::Shape caffeimport::as_tensor_shape ( const ::caffe::BlobProto *  blob_proto)
inline

Definition at line 29 of file Convert.h.

30{
31 return as_tensor_shape(blob_proto->shape());
32}
tensor::Shape as_tensor_shape(const ::caffe::BlobShape &blob_shape)
Definition Convert.cpp:24

References as_tensor_shape().

◆ as_tensor_shape() [2/2]

nncc::core::ADT::tensor::Shape caffeimport::as_tensor_shape ( const ::caffe::BlobShape &  blob_shape)

Definition at line 24 of file Convert.cpp.

25{
26 const uint32_t rank = blob_shape.dim_size();
27
28 tensor::Shape res;
29
30 res.resize(rank);
31
32 for (uint32_t axis = 0; axis < rank; ++axis)
33 {
34 res.dim(axis) = blob_shape.dim(axis);
35 }
36
37 return res;
38}
uint32_t & dim(uint32_t axis)
Definition Shape.cpp:42
Shape & resize(uint32_t size)
Definition Shape.cpp:36

References nncc::core::ADT::tensor::Shape::dim(), and nncc::core::ADT::tensor::Shape::resize().

Referenced by as_tensor_shape(), caffeimport::ConcatBuilder::build(), caffeimport::ConvolutionBuilder::build(), and caffeimport::InputBuilder::build().