9a3e9d21273da7ae40da9f70cb6df1b077b08105,tf_agents/networks/actor_distribution_network_test.py,ActorDistributionNetworkTest,testDropoutFCLayersWithConv,#ActorDistributionNetworkTest#Any#,117
Before Change
mode2 = action_distributions2.mode()
self.evaluate(tf.compat.v1.global_variables_initializer())
mode1, mode2 = self.evaluate([mode1, mode2])
if training:
self.assertGreater(np.linalg.norm(mode1 - mode2), 0)
else:
After Change
modes = []
num_modes = 10
for _ in range(num_modes):
action_distributions, _ = net(
time_step.observation, time_step.step_type, (), training=training)
modes.append(action_distributions.mode())
self.evaluate(tf.compat.v1.global_variables_initializer())
modes = self.evaluate(modes)
modes_differ = False
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: tensorflow/agents
Commit Name: 9a3e9d21273da7ae40da9f70cb6df1b077b08105
Time: 2019-12-05
Author: kbanoop@google.com
File Name: tf_agents/networks/actor_distribution_network_test.py
Class Name: ActorDistributionNetworkTest
Method Name: testDropoutFCLayersWithConv
Project Name: AIRLab-POLIMI/mushroom
Commit Name: f6c7f0d36f5326074f6796386006609e65c1f63f
Time: 2017-03-15
Author: carlo.deramo@gmail.com
File Name: examples/run.py
Class Name:
Method Name:
Project Name: rodluger/starry
Commit Name: aae0988225f370b056d905f01807638a462f0d63
Time: 2018-05-08
Author: rodluger@gmail.com
File Name: tex/figures/ylms.py
Class Name:
Method Name: Static