9cd26e0a175be1333bae77720b7806d62857429c,tf_agents/agents/behavioral_cloning/behavioral_cloning_agent_test.py,BehavioralCloningAgentTest,testCreateAgentDimChecks,#BehavioralCloningAgentTest#,127
Before Change
loss_fn=lambda logits, actions: 0)
def testCreateAgentDimChecks(self):
action_spec = [tensor_spec.BoundedTensorSpec([1, 2], tf.int32, 0, 1)]
cloning_net = DummyNet(self._observation_spec, action_spec)
with self.assertRaisesRegexp(NotImplementedError, ".*one dimensional.*"):
behavioral_cloning_agent.BehavioralCloningAgent(
self._time_step_spec, action_spec,
After Change
optimizer=None)
def testCreateAgentDimChecks(self):
action_spec = tensor_spec.BoundedTensorSpec([1, 2], tf.int32, 0, 1)
cloning_net = DummyNet(self._observation_spec, action_spec)
with self.assertRaisesRegexp(NotImplementedError, ".*scalar, unnested.*"):
behavioral_cloning_agent.BehavioralCloningAgent(
self._time_step_spec, action_spec,
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: tensorflow/agents
Commit Name: 9cd26e0a175be1333bae77720b7806d62857429c
Time: 2019-10-08
Author: wun@google.com
File Name: tf_agents/agents/behavioral_cloning/behavioral_cloning_agent_test.py
Class Name: BehavioralCloningAgentTest
Method Name: testCreateAgentDimChecks
Project Name: tensorflow/agents
Commit Name: b5ae1c6bde39f5130c975992198f1f8ee5200f9a
Time: 2020-06-22
Author: ebrevdo@google.com
File Name: tf_agents/agents/categorical_dqn/categorical_dqn_agent_test.py
Class Name: CategoricalDqnAgentTest
Method Name: testCreateAgentDimChecks
Project Name: tensorflow/agents
Commit Name: 9cd26e0a175be1333bae77720b7806d62857429c
Time: 2019-10-08
Author: wun@google.com
File Name: tf_agents/agents/behavioral_cloning/behavioral_cloning_agent_test.py
Class Name: BehavioralCloningAgentTest
Method Name: setUp
Project Name: tensorflow/agents
Commit Name: 4349b8b3a1df52fbedc06bb2e1ae6d34e28f561c
Time: 2019-08-21
Author: ebrevdo@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testCreateAgentDimChecks
Project Name: tensorflow/agents
Commit Name: 49d8d4708eff5db085b8a6d5ee7c08972019a1e0
Time: 2019-08-16
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: setUp