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

Function TestZeroInput

tensorflow/core/kernels/quantized_instance_norm_test.cc:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void TestZeroInput() {
134 Tensor input_tensor(DT_QUINT8, {1, 4, 4, 32});
135 auto input = input_tensor.flat<quint8>();
136 // Zero input, but input min > 0. Tests that output min and max should be
137 // properly separated.
138 input = input.setConstant(0);
139
140 Expect(input_tensor, 2.0f, 3.0f, false, 0.0f, 0.0f);
141}
142
143void TestMaxInput() {
144 Tensor input_tensor(DT_QUINT8, {1, 1, 2, 16});

Callers

nothing calls this directly

Calls 1

ExpectFunction · 0.70

Tested by

no test coverage detected