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

Function TestBasic

tensorflow/core/kernels/quantized_instance_norm_test.cc:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void TestBasic() {
125 Tensor input_tensor(DT_QUINT8, {1, 4, 4, 32});
126 auto input = input_tensor.flat<quint8>();
127 // Random input
128 input = input.random(Eigen::internal::UniformRandomGenerator<quint8>());
129
130 Expect(input_tensor, 0.0f, 1.0f, false, 0.0f, 0.0f);
131}
132
133void TestZeroInput() {
134 Tensor input_tensor(DT_QUINT8, {1, 4, 4, 32});

Callers

nothing calls this directly

Calls 1

ExpectFunction · 0.70

Tested by

no test coverage detected