Commit 6208605
authored
[BUG] Fixing attribute error in
The following `AttributeError` was fixed:
```
def __getattr__(self, key: str) -> Any:
data = self.__dict__.get('_data')
if isinstance(data, Data) and key in data:
if self._indices is None and data.__inc__(key, data[key]) == 0:
return data[key]
else:
data_list = [self.get(i) for i in self.indices()]
return Batch.from_data_list(data_list)[key]
import pdb; pdb.set_trace()
> raise AttributeError(f"'{self.__class__.__name__}' object has no "
f"attribute '{key}'")
E AttributeError: 'TAGDataset' object has no attribute 'llm_prediction'. Did you mean: 'llm_prediction_url'?
/usr/local/lib/python3.12/dist-packages/torch_geometric/data/in_memory_dataset.py:319: AttributeError
```test_tag_dataset (#10526)1 parent deaf4f6 commit 6208605
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
0 commit comments