facebookresearch / facebookresearch/pytorchvideo

Pls Fix AttributeError: module 'torch.testing' has no attribute 'assert_close'

Open
#232 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.6k
Forks
426
PR merge metrics
No merged PRs in 30d

Description

after setup the pytorchVideo then test
there is a bug

```
======================================================================
ERROR: test_video_transform_factory (test_transforms.TestTransforms)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/aalmadani/mywork/clean/pytorchvideo/pytorchvideo/tests/test_transforms.py", line 1087, in test_video_transform_factory
torch.testing.assert_close(
AttributeError: module 'torch.testing' has no attribute 'assert_close'

```

Contributor guide

Open the contributing guide

Research direction

Start with pytorchvideo/tests/test_transforms.py at line 1087 and run test_video_transform_factory to reproduce the reported AttributeError. Check the surrounding test and the installed PyTorch testing API to determine the supported assertion path; done means this test runs without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.