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

Namespaces

namespace  caffe
 
namespace  nnapi
 
namespace  tflite
 

Typedefs

template<typename T >
using Dims = std::vector< T >
 

Functions

Dims< uint32_t > as_dims (const nncc::core::ADT::tensor::Shape &)
 

Typedef Documentation

◆ Dims

template<typename T >
using morph::Dims = typedef std::vector<T>

Definition at line 27 of file dims.h.

Function Documentation

◆ as_dims()

Dims< uint32_t > morph::as_dims ( const nncc::core::ADT::tensor::Shape shape)

Definition at line 24 of file dims.cpp.

25{
27
28 for (uint32_t n = 0; n < shape.rank(); ++n)
29 {
30 res.emplace_back(shape.dim(n));
31 }
32
33 return res;
34}
uint32_t & dim(uint32_t axis)
Definition Shape.cpp:42
uint32_t rank(void) const
Definition Shape.cpp:35
Definition Dims.h:26

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