Thanks so much.
It works to set the variable contiguous.
I am not familiar with PackedTensorAccessors and I can’t find related topics on the Internet. Can you provide an example of how to use it or some related materials?