Skip to content

Commit 6943414

Browse files
committed
fixing test setups
1 parent 0dcfcde commit 6943414

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ RUN pip install --ignore-installed "git+https://github.com/NVIDIA/mlperf-common.
7575
# torch-harmonics
7676
ENV FORCE_CUDA_EXTENSION 1
7777
ENV TORCH_CUDA_ARCH_LIST "8.0 8.6 9.0 10.0 12.0+PTX"
78-
ENV HARMONICS_VERSION 0.8.0
79-
RUN cd /opt && git clone -b v0.8.0 https://github.com/NVIDIA/torch-harmonics.git && \
78+
ENV HARMONICS_VERSION 0.8.3
79+
RUN cd /opt && git clone -b tkurth/distributed-attention https://github.com/NVIDIA/torch-harmonics.git && \
8080
cd torch-harmonics && \
8181
pip install --no-build-isolation -e .
8282

tests/test_layers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def setUp(self):
3535
self.params.img_shape_y = 72
3636
self.params.img_local_shape_x = self.params.img_crop_shape_x = self.params.img_shape_x
3737
self.params.img_local_shape_y = self.params.img_crop_shape_y = self.params.img_shape_y
38+
self.params.img_shape_x_resampled = self.params.img_shape_x
39+
self.params.img_shape_y_resampled = self.params.img_shape_y
3840
self.params.img_local_offset_x = 0
3941
self.params.img_local_offset_y = 0
4042
self.params.img_crop_offset_x = 0

tests/test_losses.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def setUp(self):
8989
self.params.img_local_shape_y = self.params.img_crop_shape_y = self.params.img_shape_y
9090
self.params.img_local_offset_x = self.params.img_crop_offset_x = 0
9191
self.params.img_local_offset_y = self.params.img_crop_offset_y = 0
92+
self.params.img_shape_x_resampled = self.params.img_shape_x
93+
self.params.img_shape_y_resampled = self.params.img_shape_y
9294

9395
# also set the batch size for testing
9496
self.params.batch_size = 4

tests/test_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def setUp(self):
3737
self.params.img_shape_y = 72
3838
self.params.img_local_shape_x = self.params.img_crop_shape_x = self.params.img_shape_x
3939
self.params.img_local_shape_y = self.params.img_crop_shape_y = self.params.img_shape_y
40+
self.params.img_shape_x_resampled = self.params.img_shape_x
41+
self.params.img_shape_y_resampled = self.params.img_shape_y
4042
self.params.img_local_offset_x = 0
4143
self.params.img_local_offset_y = 0
4244
self.params.img_crop_offset_x = 0

0 commit comments

Comments
 (0)