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

Method variable

tfjs-core/src/tensor.ts:500–504  ·  view source on GitHub ↗
(trainable = true, name?: string, dtype?: DataType)

Source from the content-addressed store, hash-verified

498 return opHandler.cast(this as T, dtype);
499 }
500 variable(trainable = true, name?: string, dtype?: DataType): Variable<R> {
501 this.throwIfDisposed();
502 return trackerFn().makeVariable(this, trainable, name, dtype) as
503 Variable<R>;
504 }
505}
506
507Object.defineProperty(Tensor, Symbol.hasInstance, {

Callers 15

constructorMethod · 0.80
variables_test.tsFile · 0.80
gradients_test.tsFile · 0.80
engine_test.tsFile · 0.80
variable_test.tsFile · 0.80
gather_test.tsFile · 0.80
constructorMethod · 0.80
applyGradientsMethod · 0.80
setWeightsMethod · 0.80
applyGradientsMethod · 0.80
setWeightsMethod · 0.80

Calls 2

throwIfDisposedMethod · 0.95
makeVariableMethod · 0.65

Tested by

no test coverage detected