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

Function TestMaxInput

tensorflow/core/kernels/quantized_instance_norm_test.cc:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void TestMaxInput() {
144 Tensor input_tensor(DT_QUINT8, {1, 1, 2, 16});
145 auto input = input_tensor.flat<quint8>();
146 // Inputs are all FLT_MAX / (number of inputs).
147 input = input.setConstant(255);
148
149 Expect(input_tensor, 0.0f,
150 std::numeric_limits<float>::max() / static_cast<float>(2 * 16), false,
151 0.0f, 0.0f);
152}
153
154void TestOutputRangeGiven() {
155 Tensor input_tensor(DT_QUINT8, {1, 4, 4, 32});

Callers

nothing calls this directly

Calls 2

ExpectFunction · 0.70
maxFunction · 0.50

Tested by

no test coverage detected