I've found the information that so as to use Estimator Model on GPU I need the following code:
# Create a tf.estimator.RunConfig to ensure the model is run on CPU, which
# trains faster than GPU for this model.
run_config = tf.estimator.RunConfig().replace(
session_config=tf.ConfigProto(device_count={'GPU': 0},
inter_op_parallelism_threads=inter_op,
intra_op_parallelism_threads=intra_op))
Source of code: https://github.com/tensorflow/models/blob/master/official/wide_deep/census_main.py
Is this correct? Because I got the error:
NameError: name 'inter_op' is not defined
UPD: What is inter_op supposed to be like? How to choose its value?