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

Function customLoss

tfjs-layers/src/losses_test.ts:395–395  ·  view source on GitHub ↗
(x: Tensor, y: Tensor)

Source from the content-addressed store, hash-verified

393
394 it(`get custom loss works`, () => {
395 const customLoss = (x: Tensor, y: Tensor) => scalar(42.0);
396 expect(losses.get(customLoss)).toEqual(customLoss);
397 });
398});

Callers

nothing calls this directly

Calls 1

scalarFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…