| 410 | } |
| 411 | |
| 412 | bool needs_serialized_reduction(ReductionOperation op, DataType dt, unsigned int axis) |
| 413 | { |
| 414 | const bool is_min_max = (op == ReductionOperation::MAX || op == ReductionOperation::MIN); |
| 415 | const bool is_quantized_type = is_data_type_quantized(dt); |
| 416 | const bool is_first_dim = (axis == 0); |
| 417 | |
| 418 | return !is_first_dim || (is_quantized_type && !is_min_max); |
| 419 | } |
| 420 | |
| 421 | QuantizationInfo get_softmax_output_quantization_info(DataType input_type, bool is_log) |
| 422 | { |
no test coverage detected