Clear the collector.
Iterate over the collected NDArrays and apply the user-defined function to each NDArray.
the function that is applied for its side-effect to every NDArray. The result of function f is discarded.
how many unique NDArrays are collected.
Create a code scope, NDArrays allocated within this scope will be collected.
return type of the function codeBlock.
code block to be executed within the scope.
The result of function codeBlock.
(Since version 1.5.0) Please use ResourceScope instead