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

Function importGradientConfigStr

tfjs/tools/custom_module/esm_module_provider.ts:116–122  ·  view source on GitHub ↗
(kernelName: string)

Source from the content-addressed store, hash-verified

114 },
115
116 importGradientConfigStr(kernelName: string) {
117 const gradConfigId = `${kernelNameToVariableName(kernelName)}GradConfig`;
118 const importPath =
119 `@tensorflow/tfjs-core/dist/gradients/${kernelName}_grad`;
120 const importStatement = `import {${gradConfigId}} from '${importPath}';`;
121 return {importPath, importStatement, gradConfigId};
122 },
123
124 importOpForConverterStr(opSymbol) {
125 const opFileName = opNameToFileName(opSymbol);

Callers

nothing calls this directly

Calls 1

kernelNameToVariableNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…