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

Function currentNameScopePrefix

tfjs-layers/src/common.ts:60–66  ·  view source on GitHub ↗

* Get the current namescope as a flat, concatenated string.

()

Source from the content-addressed store, hash-verified

58 * Get the current namescope as a flat, concatenated string.
59 */
60function currentNameScopePrefix(): string {
61 if (_nameScopeStack.length === 0) {
62 return '';
63 } else {
64 return _nameScopeStack.join(_nameScopeDivider) + _nameScopeDivider;
65 }
66}
67
68/**
69 * Get the name a Tensor (or Variable) would have if not uniqueified.

Callers 1

getScopedTensorNameFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…