We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4dd7bd commit 0ff3b57Copy full SHA for 0ff3b57
src/libtorchaudio/rnnt/cpu/compute_alphas.cpp
@@ -37,9 +37,11 @@ RAIIATH compute_alphas(
37
options.blank_ = blank;
38
options.clamp_ = clamp;
39
40
- // TORCH_CHECK_EQ(logits.device().type(), torch::DeviceType::CPU);
41
- options.device_ = CPU;
+ int32_t logits_device_type;
+ aoti_torch_get_device_type(logits.get(), &logits_device_type);
42
+ AOTI_TORCH_CHECK(logits_device_type == aoti_torch_device_type_cpu());
43
44
+ options.device_ = CPU;
45
46
int32_t logits_device;
47
aoti_torch_get_device_type(logits.get(), &logits_device);
0 commit comments