* Releases the memory used by the weight tensors.
()
| 696 | * Releases the memory used by the weight tensors. |
| 697 | */ |
| 698 | dispose() { |
| 699 | Object.keys(this.weightMap) |
| 700 | .forEach( |
| 701 | key => this.weightMap[key].forEach(tensor => tensor.dispose())); |
| 702 | } |
| 703 | |
| 704 | private checkInputShapeAndType(inputs: NamedTensorMap) { |
| 705 | Object.keys(inputs).forEach(name => { |
no outgoing calls
no test coverage detected