The purpose of this PR is to enable TensorFlow backend support in FRNN. The version has been tested on a single GPU on Tigressdata, full multi-GPU support will follow in subsequent pull requests after migration to Keras-2.0 is finished.
Key changes:
Control backend with a single parameter in the FRNN conf.yaml
model:
backend: 'tensorflow'
This will modify the Keras backend at runtime:
if backend == 'tf' or backend == 'tensorflow':
os.environ['KERAS_BACKEND'] = 'tensorflow'
The purpose of this PR is to enable TensorFlow backend support in FRNN. The version has been tested on a single GPU on Tigressdata, full multi-GPU support will follow in subsequent pull requests after migration to Keras-2.0 is finished.
Key changes: Control backend with a single parameter in the FRNN conf.yaml
This will modify the Keras backend at runtime:
Use TensorFlow
ConfigProto
: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/protobuf/config.proto https://www.tensorflow.org/api_docs/python/tf/ConfigProtoCurrently, GPU devices is controlled via
CUDA_VISIBLE_DEVICES
env variable. Consider a possibility of usingvisible_device_list