(self, x)
| 21 | |
| 22 | # cuDNN 9.19 (pulled in by torch 2.11) dropped the Pascal (sm_60) kernels from |
| 23 | # libcudnn_ops/cnn/adv and ships PTX for sm_121 only, so nothing can be JIT'd |
| 24 | # down to sm_60 either. Every cuDNN convolution engine fails on P100 with |
| 25 | # CUDNN_STATUS_EXECUTION_FAILED. Not fixable here: cuDNN 9.19 is a hard |
| 26 | # requirement of torch 2.11, which comes from the Colab base image. |
| 27 | @p100_exempt |
| 28 | def test_cnn(self): |
| 29 | class CNN(nn.Module): |
| 30 | @nn.compact |
| 31 | def __call__(self, x): |
| 32 | x = nn.Conv(features=32, kernel_size=(3, 3))(x) |
| 33 | x = nn.relu(x) |
| 34 | x = nn.avg_pool(x, window_shape=(2, 2), strides=(2, 2)) |
| 35 | x = nn.Conv(features=64, kernel_size=(3, 3))(x) |
| 36 | x = nn.relu(x) |
| 37 | x = nn.avg_pool(x, window_shape=(2, 2), strides=(2, 2)) |
| 38 | x = x.reshape((x.shape[0], -1)) |
nothing calls this directly
no outgoing calls
no test coverage detected