Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/tfjs
/ getUserCode
Method
getUserCode
tfjs-backend-webgpu/src/pad_webgpu.ts:77–87 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
75
}
76
77
getUserCode(): string {
78
const
userCode = `
79
${main(
'index'
)} {
80
if
(index < uniforms.size) {
81
let
paddedCoords = getCoordsFromIndex(index);
82
${padCommon(this.xShape)}
83
}
84
}
85
`;
86
return
userCode;
87
}
88
}
Callers
nothing calls this directly
Calls
2
padCommon
Function · 0.85
main
Function · 0.50
Tested by
no test coverage detected