Skip to content

Commit

Permalink
Fix FutureWarning in CategoricalTensorMapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
drivanov committed May 20, 2024
1 parent ef10a69 commit 563f93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_frame/data/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def forward(

def backward(self, tensor: Tensor) -> pd.Series:
index = tensor.cpu().numpy()
ser = pd.Series(self.categories[index].index)
ser = pd.Series(self.categories.iloc[index].index)
ser[index < 0] = None
return ser

Expand Down

0 comments on commit 563f93a

Please sign in to comment.