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 9fde272 commit 4c0ed06Copy full SHA for 4c0ed06
native/python/src/fairseq2n/bindings/type_casters/torch.cc
@@ -71,7 +71,7 @@ type_caster<at::Tensor>::load(handle src, bool)
71
#if TORCH_VERSION_MAJOR < 2 || (TORCH_VERSION_MAJOR == 2 && TORCH_VERSION_MINOR < 10)
72
value = *reinterpret_cast<THPVariable *>(ptr)->cdata;
73
#else
74
- value = reinterpret_cast<THPVariable *>(ptr)->cdata;
+ value = reinterpret_cast<THPVariable *>(ptr)->cdata;
75
#endif
76
return true;
77
}
0 commit comments