ONE - On-device Neural Engine
|
#include <Tensor.h>
Public Member Functions | |
bool | copyFrom (const Tensor &other, const Shape &new_shape) |
template<typename T > | |
T * | base () const |
template<typename T , size_t NDIMS> | |
TTypes< T, NDIMS >::Tensor | shaped (const std::vector< int32_t > &new_sizes) |
template<typename T > | |
TTypes< T >::Flat | flat () |
template<typename T , size_t NDIMS> | |
TTypes< T, NDIMS >::ConstTensor | shaped (const std::vector< int32_t > new_sizes) const |
template<typename T , size_t NDIMS> | |
TTypes< T, NDIMS >::Tensor | shaped () const |
template<typename T > | |
TTypes< T >::ConstFlat | flat () const |
template<typename T > | |
TTypes< T >::ConstScalar | scalar () const |
template<typename T > | |
TTypes< T >::Vec | vec () |
template<typename T > | |
TTypes< T >::Matrix | matrix () |
Data Fields | |
Shape | shape |
void * | buffer |
|
inline |
Definition at line 100 of file Tensor.h.
References buffer, nnfw::cker::Shape::DimensionsCount(), nnfw::cker::Shape::DimsData(), nnfw::cker::Shape::FlatSize(), nnfw::cker::Shape::ReplaceWith(), and shape.
|
inline |
Definition at line 127 of file Tensor.h.
References nnfw::cker::Shape::FlatSize(), and shape.
Referenced by nnfw::cker::train::Adam(), and nnfw::cker::GenerateKey().
|
inline |
|
inline |
Definition at line 163 of file Tensor.h.
Referenced by nnfw::cker::train::CategoricalCrossEntropyWithLogits().
|
inline |
Definition at line 156 of file Tensor.h.
Referenced by nnfw::cker::train::Adam(), nnfw::cker::BroadcastTo(), and nnfw::cker::train::GradientDescent().
|
inline |
Definition at line 141 of file Tensor.h.
References nnfw::cker::Shape::Dims(), and shape.
|
inline |
Definition at line 117 of file Tensor.h.
Referenced by nnfw::cker::FusedBatchNorm::operator()().
|
inline |
Definition at line 130 of file Tensor.h.
|
inline |
Definition at line 161 of file Tensor.h.
Referenced by nnfw::cker::train::CategoricalCrossEntropyWithLogits().
void* nnfw::cker::Tensor::buffer |
Definition at line 97 of file Tensor.h.
Referenced by nnfw::cker::train::Adam(), base(), nnfw::cker::BroadcastTo(), nnfw::cker::train::CategoricalCrossEntropyWithLogits(), nnfw::cker::FusedBatchNorm::copyFrom(), copyFrom(), nnfw::cker::train::GradientDescent(), nnfw::cker::Einsum::operator()(), and nnfw::cker::StatelessRandomUniform().
Shape nnfw::cker::Tensor::shape |
Definition at line 96 of file Tensor.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), nnfw::cker::train::Adam(), nnfw::cker::BroadcastTo(), nnfw::cker::train::CategoricalCrossEntropyWithLogits(), nnfw::cker::FusedBatchNorm::copyFrom(), copyFrom(), flat(), flat(), nnfw::cker::train::GradientDescent(), nnfw::cker::Einsum::operator()(), nnfw::cker::functor::BroadcastTo< Device, T >::ReshapeAndBCast(), shaped(), and nnfw::cker::StatelessRandomUniform().