Class TensorScope
java.lang.Object
io.github.kirstenali.deepj.tensor.TensorScope
- All Implemented Interfaces:
AutoCloseable
Bounds internal view lifetimes, without releasing saved or explicitly retained storage.
Views created inside a scope are temporary; return them through
escape(Tensor).
Closing a scope permits later device cleanup, but never performs a download or allocation.-
Method Summary
-
Method Details
-
open
-
escape
-
external
User callbacks must not inherit the library's private lifetime boundary. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-