che-shr-cat / alphago

Code to recreate AlphaGo Zero models
19 stars 9 forks source link

keras depend tensorflow module #1

Open ipsec opened 7 years ago

ipsec commented 7 years ago

Using TensorFlow backend. Traceback (most recent call last): File "/Users/fernando/Desenvolvimento/Projetos/alphago/alphago-zero.py", line 3, in import keras File "/Users/fernando/Desenvolvimento/VirtualEnvs/MCTS/lib/python3.6/site-packages/keras/init.py", line 3, in from . import utils File "/Users/fernando/Desenvolvimento/VirtualEnvs/MCTS/lib/python3.6/site-packages/keras/utils/init.py", line 6, in from . import conv_utils File "/Users/fernando/Desenvolvimento/VirtualEnvs/MCTS/lib/python3.6/site-packages/keras/utils/conv_utils.py", line 3, in from .. import backend as K File "/Users/fernando/Desenvolvimento/VirtualEnvs/MCTS/lib/python3.6/site-packages/keras/backend/init.py", line 83, in from .tensorflow_backend import * File "/Users/fernando/Desenvolvimento/VirtualEnvs/MCTS/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 1, in import tensorflow as tf ModuleNotFoundError: No module named 'tensorflow'

tensorflow is requirement to run your code please update documentation

che-shr-cat commented 6 years ago

Hi, Keras actually works with different backends, Tensorflow is just a one (yet most known). I think these models do not use any features specific to Tensorflow.