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

Function TEST_F

tensorflow/core/kernels/fake_quant_ops_test.cc:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139};
140
141TEST_F(QuantOpsTest, WithArgsSymmetricRangeZeroInput_RegularRange) {
142 // Original quantization range: [-10, 10], scale: 20/255.
143 // Original zero point: 127.5, nudged zero point 128.0.
144 // Expected quantized values: 0.0.
145 RunTestFakeQuantWithMinMaxArgs(8, false, -10.0f, 10.0f, TensorShape({2, 3}),
146 {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f},
147 {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, 0.0,
148 0.0);
149}
150
151TEST_F(QuantOpsTest, WithArgsSymmetricRangeZeroInput_NarrowRange) {
152 // Original quantization range: [-10, 10], scale: 20/254.

Callers

nothing calls this directly

Calls 9

NodeDefBuilderClass · 0.85
GetOutputFunction · 0.85
GetInputFunction · 0.85
ExpectCloseFunction · 0.85
TensorShapeClass · 0.50
FakeInputFunction · 0.50
FinalizeMethod · 0.45
AttrMethod · 0.45
InputMethod · 0.45

Tested by

no test coverage detected