ONE - On-device Neural Engine
|
#include <BCast.h>
Public Types | |
typedef std::vector< int32_t > | Vec |
Public Types inherited from nnfw::cker::BCastList< 2 > | |
typedef std::vector< int32_t > | Vec |
Public Member Functions | |
BCast (const Vec &x, const Vec &y, const bool fewer_dims_optimization=true, const bool return_flattened_batch_indices=false) | |
~BCast () | |
const Vec & | x_reshape () const |
const Vec & | x_bcast () const |
const Vec & | y_reshape () const |
const Vec & | y_bcast () const |
const Vec & | result_shape () const |
const Vec & | output_shape () const |
const Vec & | grad_x_reduce_idx () const |
const Vec & | grad_y_reduce_idx () const |
const std::vector< int32_t > & | x_batch_indices () const |
const std::vector< int32_t > & | y_batch_indices () const |
Public Member Functions inherited from nnfw::cker::BCastList< 2 > | |
BCastList (const Vec(&x)[N], const bool fewer_dims_optimization=true, const bool return_flattened_batch_indices=false) | |
~BCastList () | |
bool | IsValid () const |
bool | IsBroadcastingRequired () const |
const Vec & | reshape (int i) const |
const Vec & | bcast (int i) const |
const Vec & | result_shape () const |
const Vec & | output_shape () const |
const Vec & | grad_reduce_idx (int i) const |
int32_t | output_batch_size () const |
const std::vector< int32_t > & | batch_indices (int i) const |
Static Public Member Functions | |
template<typename IndexType , int NDIMS> | |
static Eigen::array< IndexType, NDIMS > | ToIndexArrayType (const BCast::Vec &vec) |
template<int NDIMS> | |
static Eigen::array< Eigen::DenseIndex, NDIMS > | ToIndexArray (const BCast::Vec &vec) |
static Vec | FromShape (const Shape &shape) |
static Shape | ToShape (const BCastList::Vec &vec) |
Additional Inherited Members | |
Static Protected Member Functions inherited from nnfw::cker::BCastList< 2 > | |
static void | Reverse (Vec *shape) |
Protected Attributes inherited from nnfw::cker::BCastList< 2 > | |
bool | valid_ |
bool | broadcasting_required_ |
Vec | reshape_ [N] |
Vec | bcast_ [N] |
Vec | result_ |
Vec | output_ |
Vec | grad_reduce_idx_ [N] |
int32_t | output_batch_size_ |
std::vector< int32_t > | batch_indices_ [N] |
typedef std::vector<int32_t> nnfw::cker::BCast::Vec |
Definition at line 444 of file BCast.h.
References nnfw::cker::Shape::DimensionsCount(), and nnfw::cker::Shape::Dims().
Referenced by nnfw::cker::BroadcastTo(), and nnfw::cker::train::CategoricalCrossEntropyWithLogits().
|
inline |
|
inline |
|
inline |
Definition at line 410 of file BCast.h.
References nnfw::cker::BCastList< 2 >::output_.
Referenced by nnfw::cker::BroadcastTo().
|
inline |
Definition at line 409 of file BCast.h.
References nnfw::cker::BCastList< 2 >::result_.
Referenced by nnfw::cker::functor::BroadcastTo< Device, T >::ReshapeAndBCast().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 455 of file BCast.h.
References nnfw::cker::Shape::SetDim().
Referenced by nnfw::cker::BroadcastTo().
|
inline |
Definition at line 420 of file BCast.h.
References nnfw::cker::BCastList< 2 >::batch_indices_.
|
inline |
Definition at line 406 of file BCast.h.
References nnfw::cker::BCastList< 2 >::bcast_.
Referenced by nnfw::cker::train::CategoricalCrossEntropyWithLogits(), and nnfw::cker::functor::BroadcastTo< Device, T >::ReshapeAndBCast().
|
inline |
Definition at line 405 of file BCast.h.
References nnfw::cker::BCastList< 2 >::reshape_.
Referenced by nnfw::cker::train::CategoricalCrossEntropyWithLogits(), and nnfw::cker::functor::BroadcastTo< Device, T >::ReshapeAndBCast().
|
inline |
|
inline |
Definition at line 408 of file BCast.h.
References nnfw::cker::BCastList< 2 >::bcast_.
Referenced by nnfw::cker::train::CategoricalCrossEntropyWithLogits().
|
inline |
Definition at line 407 of file BCast.h.
References nnfw::cker::BCastList< 2 >::reshape_.
Referenced by nnfw::cker::train::CategoricalCrossEntropyWithLogits(), and nnfw::cker::functor::BroadcastTo< Device, T >::operator()().