fastbook icon indicating copy to clipboard operation
fastbook copied to clipboard

Update utils.py

Open nasheqlbrm opened this issue 2 years ago • 0 comments

Fix plot_function by adding a steps parameter to torch.linspace. Currently plot_function throws a TypeError: linspace() missing 1 required positional arguments: "steps"

This fixes the issue referenced in https://github.com/fastai/fastbook/issues/399 (init.py deprecation warning for linspace usage #399)

nasheqlbrm avatar Sep 19 '22 17:09 nasheqlbrm