9000ad931722064fb2efe38649389a5154538ce4,tensorforce/core/networks/auto.py,AutoNetwork,internals_spec,#Any#Any#Any#Any#,125
Before Change
internals_spec = super().internals_spec(network=network)
if network is None:
if internal_rnn:
for name, internal_spec in InternalLstm.internals_spec(size=final_size).items():
internals_spec["internal_lstm-" + name] = internal_spec
return internals_spec
def tf_apply(self, x, internals, return_internals=False):
// State-specific layers
After Change
elif len(spec["shape"]) == 2 - embedding:
layer = "conv1d"
elif len(spec["shape"]) == 3 - embedding:
layer = "conv2d"
elif len(spec["shape"]) == 0:
layers.append(self.add_module(name=(name + "-flatten"), module="flatten"))
layer = "dense"
else:
raise TensorforceError.unexpected()
// Repeat layer according to depth (one less if embedded)
for n in range(self.depth - embedding):
layers.append(
self.add_module(
name=(name + "-" + layer + str(n)), module=layer, size=self.size
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: reinforceio/tensorforce
Commit Name: 9000ad931722064fb2efe38649389a5154538ce4
Time: 2019-02-13
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/networks/auto.py
Class Name: AutoNetwork
Method Name: internals_spec
Project Name: reinforceio/tensorforce
Commit Name: 18a171adb459d987bd963e3f306dd0a28f6af0f3
Time: 2019-08-31
Author: alexkuhnle@t-online.de
File Name: tensorforce/agents/dqn.py
Class Name: DeepQNetwork
Method Name: __init__
Project Name: reinforceio/tensorforce
Commit Name: f691d1b5cc4a328f18712a14105fd90335bd3d3c
Time: 2019-09-11
Author: alexkuhnle@t-online.de
File Name: tensorforce/agents/dqn.py
Class Name: DeepQNetwork
Method Name: __init__