GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — TorchTensor deepcopy raises error when dtype is not float32 · Issue #1831 · docarray/docarray
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
TorchTensor deepcopy raises error when dtype is not float32 #1831Copy link Copy link Closed DescriptionInitial Checks
Descriptionwhen calling copy.deepcopy() over TorchTensor, it fails when tensor.dtype != torch.float32. Example Codeimport torch from docarray.typing.tensor.torch_tensor import TorchTensor import copy x = TorchTensor(torch.randn(2,3)) y = copy.deepcopy(x) # this works xx = TorchTensor(torch.randint(0,100,(2,3))) yy = copy.deepcopy(xx) # RuntimeError: Expected a Storage of type float or an UntypedStorage, but got type Long for argument 1 'storage' Python, DocArray & OS VersionAffected ComponentsActivity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |