Skip to content

Commit

Permalink
[CodeStyle][Typos][M-6] fix typos Maxinum -> Maximum (#70474)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyouzhi authored Dec 26, 2024
1 parent 4220efa commit 53e65a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
namespace phi {

static constexpr int kNumCUDAThreads = 512;
static constexpr int64_t kNumMaxinumNumBlocks = 4096;
static constexpr int64_t kNumMaximumNumBlocks = 4096;

static inline int64_t NumBlocks(const int64_t N) {
return std::min((N + kNumCUDAThreads - 1) / kNumCUDAThreads,
kNumMaxinumNumBlocks);
kNumMaximumNumBlocks);
}

template <typename T, typename IndexT>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ struct CSoftmaxWithMultiLabelCrossEntropyFunctor {
};

static constexpr int kNumCUDAThreads = 512;
static constexpr int64_t kNumMaxinumNumBlocks = 4096;
static constexpr int64_t kNumMaximumNumBlocks = 4096;

static inline int64_t NumBlocks(const int64_t N) {
return std::min((N + kNumCUDAThreads - 1) / kNumCUDAThreads,
kNumMaxinumNumBlocks);
kNumMaximumNumBlocks);
}

template <typename T, typename IndexT>
Expand Down

0 comments on commit 53e65a0

Please sign in to comment.