MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / FakeQuantWithMinMaxArgs

Function FakeQuantWithMinMaxArgs

tensorflow/go/op/wrappers.go:26793–26810  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

26791//
26792// Quantization is called fake since the output is still in floating point.
26793func 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//

Callers 2

TESTFunction · 0.85
TEST_FFunction · 0.85

Calls 4

aClass · 0.85
ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 2

TESTFunction · 0.68
TEST_FFunction · 0.68