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

Method constructor

tfjs-core/src/platforms/platform_node.ts:45–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 util: any;
44
45 constructor() {
46 // tslint:disable-next-line:no-require-imports
47 this.util = require('util');
48 // According to the spec, the built-in encoder can do only UTF-8 encoding.
49 // https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/TextEncoder
50 this.textEncoder = new this.util.TextEncoder();
51 }
52
53 fetch(path: string, requestInits?: RequestInit): Promise<Response> {
54 if (env().global.fetch != null) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected