Numpy ndarray data ownership problem on reshape and view

后端 未结 0 930
予麋鹿
予麋鹿 2021-01-17 02:12

I am confused about the ownership mechanism in numpy.

import numpy as np
a = np.arange(10)
a.flags.owndata     # True
id(a)               # 140289740187168


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题