license import { env } from '@tensorflow/tfjs-core' ; const ENV = env ( ) ; /** Whether to keep intermediate tensors. */ ENV . registerFlag ( 'KEEP_INTERMEDIATE_TENSORS' , ( ) => false , debugValue => { if ( debugValue ) { console . warn ( 'Keep intermediate tensors is ON. This will print the values of all ' + 'intermediate tensors during model inference. Not all models ' + 'support this mode. For details, check e2e/benchmarks/ ' + 'model_config.js. This significantly impacts performance.' ) ; } } ) ;