Skip to content

Commit

Permalink
fix hist
Browse files Browse the repository at this point in the history
Signed-off-by: weiwee <wbwmat@gmail.com>
Signed-off-by: sagewe <wbwmat@gmail.com>
  • Loading branch information
sagewe committed Jul 21, 2023
1 parent b0d52f0 commit 9e70e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/fate/arch/tensor/inside/_op_hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def update(self, features, labels):
shape_x, shape_y = features.shape
for i in range(shape_x):
for j in range(shape_y):
v = features[i, j]
v = features[i, j].item()
if j not in self.data:
self.data[j] = {}
if v not in self.data[j]:
Expand Down

0 comments on commit 9e70e1e

Please sign in to comment.