| 31 | } |
| 32 | |
| 33 | at::Tensor fake_tensor_quant(at::Tensor inputs, at::Tensor amax, int num_bits = 8, |
| 34 | bool is_unsigned = false, bool narrow_range = true) { |
| 35 | TORCH_CHECK(inputs.is_cuda()); |
| 36 | TORCH_CHECK(amax.numel(), 1); |
| 37 | return fake_tensor_quant_cuda(inputs.contiguous(), amax.contiguous(), num_bits, is_unsigned, narrow_range); |
| 38 | } |
| 39 | |
| 40 | at::Tensor fake_tensor_quant_with_axis(at::Tensor inputs, at::Tensor amax, int axis, |
| 41 | int num_bits = 8, bool is_unsigned = false, |
no outgoing calls
no test coverage detected