File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
test/cpp_extensions/libtorch_agnostic_extension/libtorch_agnostic/csrc Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -388,13 +388,6 @@ STABLE_TORCH_LIBRARY_FRAGMENT(libtorch_agnostic, m) {
388388
389389STABLE_TORCH_LIBRARY_IMPL (libtorch_agnostic, CPU, m) {
390390 m.impl (" my_zero_" , &boxed_my_zero_);
391- m.impl (" my_amax" , &boxed_my_amax);
392- m.impl (" my_amax_vec" , &boxed_my_amax_vec);
393- }
394-
395- STABLE_TORCH_LIBRARY_IMPL (libtorch_agnostic, CUDA, m) {
396- m.impl (" my_amax" , &boxed_my_amax);
397- m.impl (" my_amax_vec" , &boxed_my_amax_vec);
398391}
399392
400393bool test_default_constructor (bool defined ) {
@@ -430,6 +423,8 @@ STABLE_TORCH_LIBRARY_FRAGMENT(libtorch_agnostic, m) {
430423
431424STABLE_TORCH_LIBRARY_IMPL (libtorch_agnostic, CompositeExplicitAutograd, m) {
432425 m.impl (" test_default_constructor" , &boxed_test_default_constructor);
426+ m.impl (" my_amax" , &boxed_my_amax);
427+ m.impl (" my_amax_vec" , &boxed_my_amax_vec);
433428}
434429
435430// Test functions for torch::stable::accelerator APIs
You can’t perform that action at this time.
0 commit comments