No, I don’t think there is a way to list all tensors. You could try to use this approach, but as discussed in the topic tensors kept alive in the C++ backend won’t be returned by this approach.
No, I don’t think there is a way to list all tensors. You could try to use this approach, but as discussed in the topic tensors kept alive in the C++ backend won’t be returned by this approach.