MCPcopy Create free account
hub / github.com/tensorflow/tfjs / warn

Function warn

tfjs-core/src/log.ts:20–24  ·  view source on GitHub ↗
(...msg: Array<{}>)

Source from the content-addressed store, hash-verified

18import {env} from './environment';
19
20export function warn(...msg: Array<{}>): void {
21 if (!(env().getBool('IS_TEST') || env().getBool('PROD'))) {
22 console.warn(...msg);
23 }
24}
25
26export function log(...msg: Array<{}>): void {
27 if (!(env().getBool('IS_TEST') || env().getBool('PROD'))) {

Callers

nothing calls this directly

Calls 2

envFunction · 0.90
getBoolMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…