Skip to content

Commit

Permalink
Replace TypedStorage._storage with TypedStorage.untyped() (#221)
Browse files Browse the repository at this point in the history
Summary:
As part of my PR pytorch/pytorch#85303, I'm renaming `TypedStorage._storage` to `TypedStorage._untyped_storage` for better clarity, and since MultiPy depends on the old name, a CI job is failing on my PR. There is a public function `TypedStorage.untyped()` which is probably better to use in this case, and doing so will fix the CI failure for me

cc ezyang

Pull Request resolved: #221

Reviewed By: priyaramani

Differential Revision: D41086182

Pulled By: PaliC

fbshipit-source-id: 494a05c51b2e9ce29724f9bfa2728eee26e43ff7
  • Loading branch information
kurtamohler authored and facebook-github-bot committed Nov 7, 2022
1 parent dd8257a commit 3ef46e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multipy/utils/_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def persistent_id(obj):
if isinstance(obj, STORAGE_TYPE):
# TODO: Once we decide to break serialization FC, we can
# remove this case
storage = obj._storage
storage = obj.untyped()
dtype = obj.dtype
else:
storage = obj
Expand Down

0 comments on commit 3ef46e0

Please sign in to comment.