MCPcopy
hub / github.com/tensorflow/tfjs / getGlobalTensorClass

Function getGlobalTensorClass

tfjs-core/src/tensor.ts:519–526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

517});
518
519export function getGlobalTensorClass() {
520 // Use getGlobal so that we can augment the Tensor class across package
521 // boundaries because the node resolution alg may result in different modules
522 // being returned for this file depending on the path they are loaded from.
523 return getGlobal('Tensor', () => {
524 return Tensor;
525 });
526}
527
528// Global side effect. Cache global reference to Tensor class
529getGlobalTensorClass();

Callers 15

convertToTensorFunction · 0.90
greater.tsFile · 0.90
sqrt.tsFile · 0.90
logical_not.tsFile · 0.90
relu.tsFile · 0.90
atan2.tsFile · 0.90
euclidean_norm.tsFile · 0.90
round.tsFile · 0.90
rsqrt.tsFile · 0.90
div_no_nan.tsFile · 0.90

Calls 1

getGlobalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…