Fake-quantize the 'inputs' tensor, type float to 'outputs' tensor of same type. Attributes `[min; max]` define the clamping range for the `inputs` data. `inputs` values are quantized into the quantization range (`[0; 2^num_bits - 1]` when `narrow_range` is false and `[1; 2^num_bits - 1]` when it is
(scope *Scope, inputs tf.Output, optional ...FakeQuantWithMinMaxArgsAttr)
| 26791 | // |
| 26792 | // Quantization is called fake since the output is still in floating point. |
| 26793 | func FakeQuantWithMinMaxArgs(scope *Scope, inputs tf.Output, optional ...FakeQuantWithMinMaxArgsAttr) (outputs tf.Output) { |
| 26794 | if scope.Err() != nil { |
| 26795 | return |
| 26796 | } |
| 26797 | attrs := map[string]interface{}{} |
| 26798 | for _, a := range optional { |
| 26799 | a(attrs) |
| 26800 | } |
| 26801 | opspec := tf.OpSpec{ |
| 26802 | Type: "FakeQuantWithMinMaxArgs", |
| 26803 | Input: []tf.Input{ |
| 26804 | inputs, |
| 26805 | }, |
| 26806 | Attrs: attrs, |
| 26807 | } |
| 26808 | op := scope.AddOperation(opspec) |
| 26809 | return op.Output(0) |
| 26810 | } |
| 26811 | |
| 26812 | // 3D real-valued fast Fourier transform. |
| 26813 | // |