Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created December 23, 2019 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/e2bb42c5d848a68b93663e1bc3c82718 to your computer and use it in GitHub Desktop.
Save NMZivkovic/e2bb42c5d848a68b93663e1bc3c82718 to your computer and use it in GitHub Desktop.
class QNetwork(network.Network):
"""Feed Forward network."""
def __init__(self,
input_tensor_spec,
action_spec,
preprocessing_layers=None,
preprocessing_combiner=None,
conv_layer_params=None,
fc_layer_params=(75, 40),
dropout_layer_params=None,
activation_fn=tf.keras.activations.relu,
kernel_initializer=None,
batch_squash=True,
dtype=tf.float32,
name='QNetwork'):
"""Creates an instance of `QNetwork`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment