Closed quzhouxiachuan closed 6 years ago
import os import sys sys.path.append("..") import cardio.dataset as ds from cardio import EcgBatch from cardio.models.metrics import classification_report %env CUDA_VISIBLE_DEVICES=0 import tensorflow as tf Error message as the following:
import os import sys sys.path.append("..") import cardio.dataset as ds from cardio import EcgBatch from cardio.models.metrics import classification_report %env CUDA_VISIBLE_DEVICES=0 import tensorflow as tf
User/ydee/anaconda2/lib/python2.7/site-packages/cardio/dataset/dataset/batch.py", line 403 _args = tuple([src_attr, *args]) ^ SyntaxError: invalid syntax
CardIO supports python 3.5 or higher.
We moved python version check to the earlier stage, so the program should stop with a clear message that a newer python version is needed.
Thanks!
import os import sys sys.path.append("..") import cardio.dataset as ds from cardio import EcgBatch from cardio.models.metrics import classification_report %env CUDA_VISIBLE_DEVICES=0 import tensorflow as tf
Error message as the following:
User/ydee/anaconda2/lib/python2.7/site-packages/cardio/dataset/dataset/batch.py", line 403 _args = tuple([src_attr, *args]) ^ SyntaxError: invalid syntax