33 Tensor::element_type(kernel.
output()));
35 Tensor::element_type(kernel.
input2()));
37 Tensor::num_elements(kernel.
output()));
39 Tensor::num_elements(kernel.
input2()));
55 switch (Tensor::element_type(kernel.
input1()))
58 case DataType::FLOAT32:
60 const float *input_data_1_float = kernels::getTensorData<float>(input_data_1);
61 const float *input_data_2_float = kernels::getTensorData<float>(input_data_2);
62 float *output_data_float = kernels::getTensorData<float>(output_data);
64 assert(output_data_float);
75 assert(
false &&
"Unsupported type");