Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1875dcc

Browse files
5had3zpytorchmergebot
authored andcommitted
Removed arbritrary ROCM ifdef that governs threads.
Signed-off-by: Bryce Ferenczi <frenzi@hotmail.com.au>
1 parent14f0cd7 commit1875dcc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

‎aten/src/ATen/native/cuda/Loss.cu‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,7 @@ Tensor& binary_cross_entropy_backward_out_cuda(const Tensor& grad, const Tensor&
146146
namespace {
147147

148148
intnll_loss_threads(int64_t nframe){
149-
#if defined(USE_ROCM)
150149
returnstd::clamp(1 <<static_cast<int64_t>(std::round(std::log2(nframe/16))),32,1024);
151-
#else
152-
return32;
153-
#endif
154150
}
155151

156152
// NOTE(crcrpar): `Byte` support was added for https://github.com/pytorch/pytorch/issues/59765.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp