- run test
python -m pytest tests/test_autodiff.py -m task1_4
- import minitorch
import sys
sys.path.append("..")
import minitorch
- import other package: as we run in two modes: interactive in notebook and script mode
try:
from .strategies import tensor_data, indices
except:
from strategies import tensor_data, indices