31 : _input(nullptr), _pad(nullptr), _value(nullptr), _output(nullptr), _constantValueData()
40 const auto pad_data =
reinterpret_cast<const int32_t *
>(
_pad->
buffer());
43 getBuffer<T>(
_output), constant_value_data);
65 case OperandType::FLOAT32:
68 case OperandType::QUANT_UINT8_ASYMM:
72 padImpl<uint8_t>(&pad_value);
79 case OperandType::QUANT_INT8_ASYMM:
83 padImpl<int8_t>(&pad_value);
91 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)