Which if any of the following lines of python are now wrong in fastai v1, due to library changes, and what is the exact correct new version of the line of code? Thank you so much. Please no generic responses like “read the manual.” If you don’t know answers that’s OK just stay quiet if possible. THank you so much.
from fastai.learner import *
import torchtext
from torchtext import vocab, data
from torchtext.datasets import language_modeling
from fastai.rnn_reg import *
from fastai.rnn_train import *
from fastai.nlp import *
from fastai.lm_rnn import *
The show_install(1) script reports everything is OK (see below). HOwever, it’s not really OK at all, because the imports above all throw exception regarding fail to load module. Is there in existence yet, a version-matched-to-fastai.v1 python script which runs all the imports in Jeremy’s notebooks, which can serve as a slightly more detailed diagnostic of installation status of the fastai stack of software? Or for starters I would just like confirmatin that the above code is still currently compatible with my versions shown below, if anyone knows. THanks for helping me get this train on the tracks.
My version information:
$ python -c ‘import fastai; fastai.show_install(1)’
=== Software ===
python version : 3.6.6
fastai version : 1.0.30
torch version : 1.0.0.dev20181128
nvidia driver : 384.145
torch cuda ver : 8.0.61
torch cuda is : available
torch cudnn ver : 7102
torch cudnn is : enabled
=== Hardware ===
nvidia gpus : 1
torch available : 1
- gpu0 : 8112MB | GeForce GTX 1080
=== Environment ===
platform : Linux-4.4.0-139-generic-x86_64-with-debian-stretch-sid
distro : #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018
conda env : py36
python : /home/ga/anaconda3/envs/py36/bin/python
sys.path :
/usr/local/spark/python/lib/py4j-0.10.6-src.zip
/usr/local/spark/python
/mnt/fastssd/bot_subreddit_recom
/home/ga/anaconda3/envs/py36/lib/python36.zip
/home/ga/anaconda3/envs/py36/lib/python3.6
/home/ga/anaconda3/envs/py36/lib/python3.6/lib-dynload
/home/ga/anaconda3/envs/py36/lib/python3.6/site-packages
/home/ga/anaconda3/envs/py36/lib/python3.6/site-packages/urllib3-1.12-py3.6.egg
/home/ga/anaconda3/envs/py36/lib/python3.6/site-packages/IPython/extensions
Wed Nov 28 12:39:20 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.145 Driver Version: 384.145 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1080 Off | 00000000:41:00.0 Off | N/A |
| 0% 42C P0 46W / 240W | 10MiB / 8112MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+