MCPcopy
hub / github.com/tensorflow/tfjs / expectTensorsValuesInRange

Function expectTensorsValuesInRange

tfjs-layers/src/utils/test_utils.ts:74–81  ·  view source on GitHub ↗
(
    actual: Tensor, low: number, high: number)

Source from the content-addressed store, hash-verified

72 * @param expected
73 */
74export function expectTensorsValuesInRange(
75 actual: Tensor, low: number, high: number) {
76 if (actual == null) {
77 throw new ValueError(
78 'First argument to expectTensorsClose() is not defined.');
79 }
80 test_util.expectValuesInRange(actual.dataSync(), low, high);
81}
82
83/**
84 * Describe tests to be run on CPU and GPU.

Callers 1

Calls 1

dataSyncMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…