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

Function writeGraphModelGoldenData

e2e/scripts/build-graph-model-golden-data.ts:77–86  ·  view source on GitHub ↗
(data: GraphModeGoldenData)

Source from the content-addressed store, hash-verified

75}
76
77function writeGraphModelGoldenData(data: GraphModeGoldenData) {
78 if (!fs.existsSync(GRAPH_MODEL_GOLDEN_DATA_DIR)) {
79 fs.mkdirSync(GRAPH_MODEL_GOLDEN_DATA_DIR, {recursive: true});
80 }
81 fs.writeFileSync(
82 path.join(
83 GRAPH_MODEL_GOLDEN_DATA_DIR,
84 getGraphModelGoldenDataFilename(data.name)),
85 JSON.stringify(data));
86}
87
88(async function main() {
89 if (MODEL_CONFIGS.length === 0) {

Calls 2

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…