from fastai.conv_learner import *
from fastai.dataset import *
import pandas as pd
import numpy as np
import os
from PIL import Image
from sklearn.model_selection import train_test_split
Я получил следующую ошибку при импорте
cuda 10.1
tensorflow = 2.0.0
Traceback (most recent call last):
File
"/home/jake/venv/lib/python3.7/site-packages/IPython/core/interactiveshell.py",
line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-6-7dcee084b5a9>", line 1, in <module>
from fastai.conv_learner import *
File
"/home/jake/venv/lib/python3.7/site-packages/fastai/conv_learner.py",
line 1, in <module>
from .core import *
File "/home/jake/venv/lib/python3.7/site-packages/fastai/core.py",
line 19
def V_(x): return to_gpu(x, async=True) if isinstance(x, Variable) else Variable(to_gpu(x, async=True))
^ SyntaxError: invalid syntax