diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e41053d..5016e13 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8, 3.9] + python-version: ['3.10', '3.11'] steps: - name: Checkout most recent commit uses: actions/checkout@v3 diff --git a/deepdow/layers/misc.py b/deepdow/layers/misc.py index 5c137bf..3b4cd58 100644 --- a/deepdow/layers/misc.py +++ b/deepdow/layers/misc.py @@ -141,7 +141,7 @@ def compute_covariance(m, shrinkage_strategy=None, shrinkage_coef=0.5): """ fact = 1.0 / (m.size(1) - 1) - m = m - torch.mean(m, dim=1, keepdim=True) # !!!!!!!!!!! INPLACE + m = m - torch.mean(m, dim=1, keepdim=True) mt = m.t() s = fact * m.matmul(mt) # sample covariance matrix diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 81e7b91..c82e227 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,6 +1,12 @@ Changelog ========= +Unreleased +---------- + +v0.2.2 +------ + v0.2.1 ------ Added diff --git a/examples/layers/warp.py b/examples/layers/warp.py index 4c33940..6d1e77e 100644 --- a/examples/layers/warp.py +++ b/examples/layers/warp.py @@ -52,5 +52,5 @@ axs[i, 0].plot(tform.numpy().squeeze(), linewidth=3, color='red') axs[i, 1].plot(x_warped.numpy().squeeze(), linewidth=3, color='blue') - axs[i, 0].set_title(r'$\bf{}$ tform'.format(tform_name)) - axs[i, 1].set_title(r'$\bf{}$ warped'.format(tform_name)) + axs[i, 0].set_title('{} tform'.format(tform_name)) + axs[i, 1].set_title('{} warped'.format(tform_name))