tenstorrent / tt-buda-demos

Repository of model demos using TT-Buda
Other
47 stars 14 forks source link

Unused clear_pybuda function warning #101

Open anirudTT opened 1 month ago

anirudTT commented 1 month ago

Description:

The function clear_pybuda is defined in the conftest.py file but is not being accessed in the current test script folder. This results in a warning from the Pylance extension indicating that clear_pybuda is not accessed.

Steps to Reproduce:

Open the test_beit_classify_224_hf_pytorch.py file in Visual Studio Code with Pylance enabled. Observe the warning message indicating that the clear_pybuda function is not accessed.

Expected Behavior: The clear_pybuda function should be utilized in the test script if it is necessary for clearing or setting up the test environment. If it is not needed, consider removing the function or ensuring it is correctly called within the test setup.

Actual Behavior: The clear_pybuda function is defined but not accessed, causing an unnecessary warning in the code editor.

Environment: Visual Studio Code with Pylance extension Python environment with pytest installed

Suggested Fix: Review the conftest.py file to ensure clear_pybuda is either correctly utilized or removed if not necessary. If clear_pybuda is meant to be a fixture, ensure it is correctly decorated with @pytest.fixture and used in the test functions.

System (please complete the following information):

Screenshots Screenshot 2024-06-13 at 4 46 23 PM