17#ifndef __ONERT_BACKEND_TRAIN_OPS_OPERATION_UTILS_H__
18#define __ONERT_BACKEND_TRAIN_OPS_OPERATION_UTILS_H__
20#include <ops/OperationUtils.h>
A tensor class that is portable for other backends.
const T * getBuffer(const IPortableTensor *tensor)
uint32_t getNumberOfElements(const IPortableTensor *tensor)
nnfw::cker::PaddingType getPaddingType(ir::PaddingType ir_padding_type)
uint32_t getSizeOfDimension(const IPortableTensor *tensor, uint32_t dimensionIdx)
uint32_t getNumberOfDimensions(const IPortableTensor *tensor)
void biasGrad(const IPortableTensor *input_backprop, IPortableTensor *bias_grad)
backpropagate bias
const IPortableTensor * backpropActivation(const ir::Activation &activation, const IPortableTensor *output, const IPortableTensor *input_backprop, IPortableTensor *output_backprop)
backpropagate acitvation
nnfw::cker::Shape getShape(const IPortableTensor *tensor)
Get shape of tensor.
nnfw::cker::train::LossReductionType convertLossReductionType(ir::train::LossReductionType type)
convert loss reduction type