AttributeError: partially initialized module 'torch' has no attribute 'Tensor' (most likely due to a circular import)

Hi I am getting this AttributeError: partially initialized module ‘torch’ has no attribute ‘Tensor’ (most likely due to a circular import) on my M1 mac. Is there a fix? Thanks.

1 Like