MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / normalizePath

Function normalizePath

visualize-convnet/index.js:29–31  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

27const imageResultSection = document.getElementById('image-result');
28
29function normalizePath(path) {
30 return path.startsWith('dist/') ? path.slice(5) : path;
31}
32
33async function run() {
34 // Empty the image-and-result section.

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected