MCPcopy Index your code
hub / github.com/tensorflow/tfjs / getScopedTensorName

Function getScopedTensorName

tfjs-layers/src/common.ts:73–78  ·  view source on GitHub ↗
(tensorName: string)

Source from the content-addressed store, hash-verified

71 * @return Scoped name string.
72 */
73export function getScopedTensorName(tensorName: string): string {
74 if (!isValidTensorName(tensorName)) {
75 throw new Error('Not a valid tensor name: \'' + tensorName + '\'');
76 }
77 return currentNameScopePrefix() + tensorName;
78}
79
80/**
81 * Get unique names for Tensors and Variables.

Callers 2

constructorMethod · 0.90
constructorMethod · 0.90

Calls 2

isValidTensorNameFunction · 0.85
currentNameScopePrefixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…