Skip to content

Commit 3b36fa8

Browse files
committed
Merge branch 'main' into fix-2398
2 parents 0cf6c4d + 38733f0 commit 3b36fa8

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

thunder/tests/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,3 @@ pytest test_ops.py -k cos -v
1515
```
1616

1717
This will run tests for Thunder’s different executors, supported dtypes, and supported devicetypes.
18-
19-
The OpInfo tests can also be run from Python, and this can be extremely useful for debugging.
20-
To do that, find the generated test name you’d like to run (often by invoking the tests from the command line and observing their names) and call it. Here’s a sample program:
21-
22-
```py
23-
import traceback
24-
import thunder.tests.test_ops as to
25-
26-
e, exc_info, snippet, opinfo, devicetype, dtype, args, kwargs = to.test_core_vs_torch_consistency_cos_nvFuser_CUDA_float32()
27-
28-
traceback.print_exception(*exc_info)
29-
```
30-
31-
If the test fails, it will return information about the failure, including error information and the arguments that caused the failure.
32-
In the above sample the traceback information is printed. If the test succeeds then it will return nothing.
33-
34-
It can be a little tricky to remember all the components a test returns, but you can
35-
always catch and print the return value to better understand what's available.

0 commit comments

Comments
 (0)