54 const circle::Tensor *input =
nullptr;
55 uint8_t *output_data =
nullptr;
60 runtime_kernel.
readKernel(op_index, runtime_context);
62 input = runtime_kernel.
inputs[inputTensorIdx];
64 assert(input !=
nullptr);
66 status = runtime_kernel.
getDataFromStorage(op_index, runtime_storage, runtime_context);
70 output_data = runtime_kernel.
outputs_data[outputTensorIdx];
73 assert(output_data !=
nullptr);
76 const int flat_size = input_shape.
flatSize();
78 switch (input->type())
81 case circle::TensorType_FLOAT32:
83 resetZeros(core::utils::castOutputData<float>(output_data), flat_size);
88 case circle::TensorType_INT8:
90 resetZeros(core::utils::castOutputData<int8_t>(output_data), flat_size);
98 assert(
false &&
"Unsupported type.");