MemorySnapshotObserver

Captures the context's reported memory usage after each operation.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun onOpEnd(context: ExecutionContext, opName: String, result: Any?)

Called after a successful operation. result can be a single tensor, a collection of tensors, or any backend specific payload.

Link copied to clipboard
open override fun reset()
Link copied to clipboard