December 2019
Intermediate to advanced
368 pages
11h 10m
English
The TensorFlow network graph is created by the make_net function, which receives the ANN model constructor, the GPU device identifier, and the batch size as input parameters. The network graph is created as follows:
self.model = model_constructor() … with tf.variable_scope(None, default_name='model'): with tf.device(‘/cpu:0'): self.env = self.make_env_f(self.batch_size)
self.placeholder_indices = tf.placeholder(tf.int32, shape=(None, ))
Read now
Unlock full access