Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: sagewe <wbwmat@gmail.com>
  • Loading branch information
sagewe committed Aug 21, 2023
1 parent 8a61bcf commit 42d40af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/fate/arch/histogram/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# from fate_utils.histogram import HistogramIndexer, Shuffler
from .indexer import HistogramIndexer, Shuffler

loggger = logging.getLogger(__name__)
logger = logging.getLogger(__name__)


class HistogramValues:
Expand Down Expand Up @@ -195,7 +195,7 @@ def i_update(self, value, positions):
index = index.flatten()

if self.data.dtype != value.dtype:
loggger.warning(f"update value dtype {value.dtype} is not equal to data dtype {self.data.dtype}")
logger.warning(f"update value dtype {value.dtype} is not equal to data dtype {self.data.dtype}")
value = value.to(self.data.dtype)
self.data.scatter_add_(0, index, value)

Expand Down

0 comments on commit 42d40af

Please sign in to comment.