Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
const
imageResultSection = document.getElementById(
'image-result'
);
28
29
function
normalizePath(path) {
30
return
path.startsWith(
'dist/'
) ? path.slice(5) : path;
31
}
32
33
async
function
run() {
34
// Empty the image-and-result section.
Callers
1
run
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected