Skip to content

Commit 62f3c7d

Browse files
committed
add device process
1 parent 032d325 commit 62f3c7d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

python/paddle/audio/functional/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def _apply_window_postprocess(
493493
raise RuntimeError(
494494
f"Pinning memory is not supported for {device}"
495495
)
496-
496+
w = paddle.to_tensor(w, place=device)
497497
if pin_memory and paddle.in_dynamic_mode():
498498
w = w.pin_memory()
499499
if requires_grad is True:

test/legacy_test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,6 @@ set_tests_properties(test_cross_entropy_loss PROPERTIES TIMEOUT 180)
876876
set_tests_properties(test_legacy_loss_args PROPERTIES TIMEOUT 10)
877877
set_tests_properties(test_activation_nn_grad PROPERTIES TIMEOUT 250)
878878
set_tests_properties(test_empty_op PROPERTIES TIMEOUT 120)
879-
set_tests_properties(test_window PROPERTIES TIMEOUT 10)
880879
set_tests_properties(test_elementwise_div_op PROPERTIES TIMEOUT 120)
881880
set_tests_properties(test_multiclass_nms_op PROPERTIES TIMEOUT 120)
882881
if(NOT WIN32)

0 commit comments

Comments
 (0)