31 Tensor::element_type(kernel.
output()));
33 Tensor::element_type(kernel.
input2()));
37 Tensor::num_elements(kernel.
output()));
45 switch (Tensor::element_type(kernel.
input1()))
48 case DataType::FLOAT32:
50 const float *input_data_float = kernels::getTensorData<float>(kernel_data.
input1_data);
51 const float *alpha_data_float = kernels::getTensorData<float>(kernel_data.
input2_data);
52 float *output_data_float = kernels::getTensorData<float>(kernel_data.
output_data);
53 assert(output_data_float);
54 assert(input_data_float);
55 assert(alpha_data_float);
65 assert(
false &&
"Unsupported type");
void BroadcastPrelu4DSlowFloat(const luci_interpreter::RuntimeShape &unextended_input1_shape, const float *input1_data, const luci_interpreter::RuntimeShape &unextended_input2_shape, const float *input2_data, const luci_interpreter::RuntimeShape &unextended_output_shape, float *output_data)