From 36c0d3e7f96a6e5fff70c7e45c7a09218fe3b7a5 Mon Sep 17 00:00:00 2001 From: vmoens Date: Tue, 8 Aug 2023 10:44:33 -0400 Subject: [PATCH] amend --- tensordict/tensordict.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tensordict/tensordict.py b/tensordict/tensordict.py index 0b2b154bc..cab1db767 100644 --- a/tensordict/tensordict.py +++ b/tensordict/tensordict.py @@ -3785,9 +3785,6 @@ def __init__( for key, value in source.items(): self.set(key, value) - # def __hash__(self): - # return hash((self._tensordict, self._batch_size, self._device)) - @classmethod def from_dict(cls, input_dict, batch_size=None, device=None, batch_dims=None): """Returns a TensorDict created from a dictionary or another :class:`TensorDict`.