faster-rcnn-rgbd icon indicating copy to clipboard operation
faster-rcnn-rgbd copied to clipboard

module 'torch' has no attribute '_TensorBase'

Open 7-qiliu opened this issue 5 years ago • 1 comments

in ur utils/array_tool.py, you use t._TensorBase but when I run the code, it turns wrong and pops up: AttributeError: module 'torch' has no attribute '_TensorBase'

7-qiliu avatar Aug 24 '19 14:08 7-qiliu

I just solve it, change the line from: if isinstance(data, t._C._TensorBase): to if isinstance(data, t._C._TensorBase) and (data.requires_grad==False):

7-qiliu avatar Aug 24 '19 15:08 7-qiliu