Files
cs249r_book/tinytorch/tests/10_tokenization
Rocky 96e672bc7f fix(tests/10_tokenization): replace raw numpy array params with Tensor in DummyModel
DummyModel.parameters() was returning [np.array([1.0])], a raw numpy
array. Trainer.__init__ iterates model.parameters() and checks
param.requires_grad, which crashes with AttributeError on numpy arrays.

Fix: give DummyModel a proper Tensor parameter with requires_grad=True,
consistent with how every other test stub in this file constructs params.
2026-04-16 18:19:20 +05:30
..