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

Function GetToleranceInt16

tensorflow/lite/kernels/sub_test.cc:84–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84float GetToleranceInt16(float min, float max) {
85 float kQuantizedStep = (max - min) / std::numeric_limits<int16_t>::max();
86 return kQuantizedStep;
87}
88
89TEST(FloatSubOpModel, NoActivation) {
90 FloatSubOpModel m({TensorType_FLOAT32, {1, 2, 2, 1}},

Callers 1

TESTFunction · 0.70

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected