49 const auto options = cur_op->builtin_options_as_LeakyReluOptions();
51 switch (Tensor::element_type(kernel.
input()))
54 case DataType::FLOAT32:
56 const float *input_data_float = kernels::getTensorData<float>(input_data);
57 float *output_data_float = kernels::getTensorData<float>(output_data);
60 output_data_float =
const_cast<float *
>(input_data_float);
63 assert(output_data_float);
68 options->alpha(),
false);
73 assert(
false &&
"Unsupported type");