 33%|███▎
| 1/3 [00:03<00:07,
3.50s/it]Traceback (most recent call last):



 "<ipython-input-24-9082a13a0241>", line 1, in <module>

runfile('C:/Users/cstarr/Documents/GitHub/MP_nnDetector/cnnMP_optimHP.py', wdir='C:/Users/cstarr/Documents/GitHub/MP_nnDetector')



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile

execfile(filename, namespace)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)



 "C:/Users/cstarr/Documents/GitHub/MP_nnDetector/cnnMP_optimHP.py", line 122, in <module>

t = ta.Scan(np.expand_dims(trainHist2,axis=2), trainLabels, params=p, model=mods.cnnMP)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\talos\scan\Scan.py", line 170, in __init__

self._null = self.runtime()



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\talos\scan\Scan.py", line 175, in runtime

self = scan_run(self)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\talos\scan\scan_run.py", line 18, in scan_run

self = scan_round(self)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\talos\scan\scan_round.py", line 32, in scan_round

_hr_out, self.keras_model = ingest_model(self)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\talos\model\ingest_model.py", line 10, in ingest_model

self.round_params)



 "C:\Users\cstarr\Documents\GitHub\MP_nnDetector\modelDefs.py", line 38, in cnnMP

validation_data=[x_val,y_val])



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\keras\engine\training.py", line 1010, in fit

self._make_train_function()



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\keras\engine\training.py", line 509, in _make_train_function

loss=self.total_loss)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper

return func(*args, **kwargs)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\keras\optimizers.py", line 196, in get_updates

v = self.momentum * m - lr * g
# velocity



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\ops\variables.py", line 935, in _run_op

return tensor_oper(a.value(), *args, **kwargs)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\ops\math_ops.py", line 810, in binary_op_wrapper

with ops.name_scope(None, op_name, [x, y]) as name:



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 6083, in __enter__

g = _get_graph_from_inputs(self._values)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 5713, in _get_graph_from_inputs

_assert_same_graph(original_graph_element, graph_element)



 "C:\Users\cstarr\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 5649, in _assert_same_graph

original_item))

ValueError: Tensor("training/SGD/Variable:0", shape=(5, 1, 50), dtype=float32_ref) must be from the same graph as Tensor("SGD_1/momentum/read:0", shape=(), dtype=float32).
Traceback (most recent call last):


 "dqn_fail_demonstrator.py", line 37, in <module>

trainer = DQNAgent(env="CartPole-v0", config=config)


 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/rllib/agents/agent.py", line 280, in __init__

Trainable.__init__(self, config, logger_creator)


 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/tune/trainable.py", line 88, in __init__

self._setup(copy.deepcopy(self.config))


 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/rllib/agents/agent.py", line 377, in _setup

self._init()


 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/rllib/agents/dqn/dqn.py", line 207, in _init

self.env_creator, self._policy_graph)


 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/rllib/agents/agent.py", line 510, in make_local_evaluator

extra_config or {}))


 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/rllib/agents/agent.py", line 727, in _make_evaluator

async_remote_worker_envs=config["async_remote_worker_envs"])


 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/rllib/evaluation/policy_evaluator.py", line 296, in __init__

self._build_policy_map(policy_dict, policy_config)

 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/rllib/evaluation/policy_evaluator.py", line 692, in _build_policy_map

policy_map[name] = cls(obs_space, act_space, merged_conf)


 "/Users/ristovuorio/projects/ray_doodle/ray/python/ray/rllib/agents/dqn/dqn_policy_graph.py", line 394, in __init__

update_target_expr.append(var_target.assign(var))


 "/Users/ristovuorio/miniconda3/envs/ray_fiddle/lib/python3.6/site-packages/tensorflow/python/ops/resource_variable_ops.py", line 951, in assign

self._shape.assert_is_compatible_with(value_tensor.shape)


 "/Users/ristovuorio/miniconda3/envs/ray_fiddle/lib/python3.6/site-packages/tensorflow/python/framework/tensor_shape.py", line 848, in assert_is_compatible_with

raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (3,) and (11,) are incompatible
