Skip to content

Commit

Permalink
chore:debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChongWei905 committed Jul 22, 2024
1 parent fb1fbc0 commit 499a344
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/modules/test_feature_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ def test_feature_extraction_with_checkpoint(model_name, length_target):
features_only=True,
)

print(ms.get_context("device_target"))

assert isinstance(model, nn.Cell), "Loading checkpoint error"

x = ms.Tensor(np.random.randn(8, 3, 32, 32), dtype=ms.float32)
Expand Down

0 comments on commit 499a344

Please sign in to comment.