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

Function revertAddonName

tfjs-node/scripts/install.js:79–83  ·  view source on GitHub ↗
(orig)

Source from the content-addressed store, hash-verified

77}
78
79function revertAddonName(orig) {
80 packageJsonFile['binary'] = orig;
81 const stringFile = JSON.stringify(packageJsonFile, null, 2).concat('\n');
82 fs.writeFileSync((`${__dirname}/../package.json`), stringFile);
83}
84
85/**
86 * Returns the libtensorflow hosted path of the current platform.

Callers 1

buildFunction · 0.85

Calls 1

concatMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…