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

Method assertNotDisposed

tfjs-layers/src/variables.ts:117–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 }
116
117 protected assertNotDisposed(): void {
118 if (this.val.isDisposed) {
119 throw new Error(`LayersVariable ${this.name} is already disposed.`);
120 }
121 }
122
123 get trainable(): boolean {
124 return this.trainable_;

Callers 6

readMethod · 0.95
writeMethod · 0.95
disposeMethod · 0.95
disposeFunction · 0.80
applyFunction · 0.80
disposeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected