File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,12 +114,19 @@ python -m mkl_random --with-numpy-patch -- <command> [args...]
114114
115115``` python
116116import mkl_random
117+ import numpy
117118
118119mkl_random.patch_numpy_random()
119120print (mkl_random.is_patched())
121+ # run your accelerated numpy workloads here!
120122mkl_random.restore_numpy_random()
123+ ```
121124
125+ ``` python
126+ import mkl_random
127+ import numpy
122128with mkl_random.mkl_random():
129+ # run your accelerated workloads here!
123130 pass
124131```
125132
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def test_patch_status_check_function(mock_pth_path):
9999
100100
101101def test_install_patch_enables_runtime_patch_via_pth (mock_pth_path ):
102- """Test that .pth activation results in patched NumPy random runtime state."""
102+ """Test that .pth activation yields patched NumPy random runtime state."""
103103 install_patch ()
104104
105105 preexisting_patch_state = mkl_random .is_patched ()
You can’t perform that action at this time.
0 commit comments