You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am on step 5 of the tutorial using jupyter notebook, and have had an interesting time with the dependencies. I am trying to run this cell on step 5:
Note: be v. careful before removing this, as 3rd party device types
136 # likely rely on this behavior to properly .to() modules like LSTM.
--> 137 self._flat_weights = [getattr(self, weight) for weight in self._flat_weights_names]
138
139 # Flattens params (on CUDA)
'LSTM' object has no attribute '_flat_weights_names'
which originates in torch\nn\modules\module.py
This torch library is an old version of pytorch, right? There are also other libraries that I am having trouble getting a hold of. I am pretty sure that this is a compatibility error; is there anyway you could provide the torch library you used for this tutorial as it is not available to download. My OS is Win x64.
The text was updated successfully, but these errors were encountered:
Hello,
I am on step 5 of the tutorial using jupyter notebook, and have had an interesting time with the dependencies. I am trying to run this cell on step 5:
lang_model = torch.load('./data/lang_model/lang_model_cpu_v2.torch',
map_location=lambda storage, loc: storage)
vocab = load_lm_vocab('./data/lang_model/vocab_v2.cls')
q2emb = Query2Emb(lang_model = lang_model.cpu(),
vocab = vocab)
search_index = nmslib.init(method='hnsw', space='cosinesimil')
search_index.loadIndex('./data/search/search_index.nmslib')
however, an error is produced...
Note: be v. careful before removing this, as 3rd party device types
--> 137 self._flat_weights = [getattr(self, weight) for weight in self._flat_weights_names]
138
139 # Flattens params (on CUDA)
'LSTM' object has no attribute '_flat_weights_names'
which originates in torch\nn\modules\module.py
This torch library is an old version of pytorch, right? There are also other libraries that I am having trouble getting a hold of. I am pretty sure that this is a compatibility error; is there anyway you could provide the torch library you used for this tutorial as it is not available to download. My OS is Win x64.
The text was updated successfully, but these errors were encountered: