25 : _input(nullptr), _pad(nullptr), _value(nullptr), _output(nullptr), _constantValueData()
34 const auto pad_data =
reinterpret_cast<const int32_t *
>(
_pad->
buffer());
37 getBuffer<T>(
_output), constant_value_data);
59 case OperandType::FLOAT32:
62 case OperandType::QUANT_UINT8_ASYMM:
66 padImpl<uint8_t>(&pad_value);
73 case OperandType::QUANT_INT8_ASYMM:
77 padImpl<int8_t>(&pad_value);
85 throw std::runtime_error{
"Pad: unsupported data type"};
A tensor class that is portable for other backends.
int32_t data_zero_point() const override final
ir::DataType data_type() const override final
ir::Shape getShape() const override final
Get ir::Shape of tensor.
virtual uint8_t * buffer() const =0
IPortableTensor * _output
ConstDataPtr _constantValueData
const IPortableTensor * _input
const IPortableTensor * _value
void padImpl(const T *constant_value_data)
const IPortableTensor * _pad
void configure(const IPortableTensor *input, const IPortableTensor *pad, const IPortableTensor *value, IPortableTensor *output)
nnfw::cker::Shape getShape(const IPortableTensor *tensor)