bshillingford / python-torchfile

Deserialize Lua torch-serialized objects from Python
BSD 3-Clause "New" or "Revised" License
216 stars 25 forks source link

Proposed solution to hashable_uniq_dict key issue on windows. #13

Closed bradleybauer closed 2 years ago

bradleybauer commented 6 years ago

Fixes: #12 I've been able to use torchfile on windows using this workaround.

Unhashable items can not be stored as keys in hashable_uniq_dict. So to fix this, wrap all keys in hashable_uniq_dict with a hashable type.

This breaks tests though.