Skip to content

Commit 7e22a23

Browse files
committed
lock torch version to 2.7.1
1 parent 1d48962 commit 7e22a23

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def set_torch_cuda_arch_list():
101101
install_requires=[
102102
"h5py",
103103
# "nnpops",
104-
"torch",
104+
"torch==2.7.1",
105105
"torch_geometric",
106106
"lightning",
107107
"tqdm",

torchmdnet/extensions/neighbors/neighbors_cpu.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -218,20 +218,20 @@ TORCH_LIBRARY_IMPL(torchmdnet_extensions, CompositeImplicitAutograd, m) {
218218
});
219219
}
220220

221-
// Explicit device backend registrations for PyTorch versions that do not
222-
// automatically fall back to CompositeImplicitAutograd for device dispatch.
223-
TORCH_LIBRARY_IMPL(torchmdnet_extensions, CPU, m) {
224-
m.impl("get_neighbor_pairs",
225-
[](const std::string& strategy, const Tensor& positions, const Tensor& batch,
226-
const Tensor& box_vectors, bool use_periodic, const Scalar& cutoff_lower,
227-
const Scalar& cutoff_upper, const Scalar& max_num_pairs, bool loop,
228-
bool include_transpose) {
229-
auto result = NeighborAutograd::apply(strategy, positions, batch, box_vectors,
230-
use_periodic, cutoff_lower, cutoff_upper,
231-
max_num_pairs, loop, include_transpose);
232-
return std::make_tuple(result[0], result[1], result[2], result[3]);
233-
});
234-
}
221+
// // Explicit device backend registrations for PyTorch versions that do not
222+
// // automatically fall back to CompositeImplicitAutograd for device dispatch.
223+
// TORCH_LIBRARY_IMPL(torchmdnet_extensions, CPU, m) {
224+
// m.impl("get_neighbor_pairs",
225+
// [](const std::string& strategy, const Tensor& positions, const Tensor& batch,
226+
// const Tensor& box_vectors, bool use_periodic, const Scalar& cutoff_lower,
227+
// const Scalar& cutoff_upper, const Scalar& max_num_pairs, bool loop,
228+
// bool include_transpose) {
229+
// auto result = NeighborAutograd::apply(strategy, positions, batch, box_vectors,
230+
// use_periodic, cutoff_lower, cutoff_upper,
231+
// max_num_pairs, loop, include_transpose);
232+
// return std::make_tuple(result[0], result[1], result[2], result[3]);
233+
// });
234+
// }
235235

236236
// TORCH_LIBRARY_IMPL(torchmdnet_extensions, CUDA, m) {
237237
// m.impl("get_neighbor_pairs",

0 commit comments

Comments
 (0)