This notebook contains a series of various errors that can be used when running with fastai
. It should be noted here that there is no other imports or magic you need to do to use this section of the library other then: from fastdebug import *
. It will automatically load in what's needed.
As a style choice, we are choosing to do the .*
notation as this loads in not only all of our errors, but also replaces sections of fastai
's code to inject some error handling (as we'll see later)
With sanity_check
, you can make sure that you've set everything up properly and you won't get any issues before pushing to the GPU. This allows you to quickly ensure that you won't get any CUDA
device-assist errors, and that the whole training regiment will go well.
We have a custom load_learner
function here that can check if everything exported is available when bringing the model in, if not then it'll raise an explicit error