Hi,
Creating a Tensor will not initialize the memory. It will contain whatever the memory contained when it was returned by the allocator.
In your case I guess that you have an allocator for small objects that don’t initialize memory and one for large objects that does zero-out all the values.