Traceback (most recent call last):


 "visual.py", line 60, in <module>

heatmap = visualize_cam(model, layer_idx, [pred_class], img)


 "/Users/user/anaconda2/envs/adv/lib/python2.7/site-packages/vis/visualization.py", line 243, in visualize_cam

_, grads, penultimate_output_value = opt.minimize(seed_img, max_iter=1, verbose=False)


 "/Users/user/anaconda2/envs/adv/lib/python2.7/site-packages/vis/optimizer.py", line 127, in minimize

computed_values = self.compute_fn([seed_img, 0])


 "/Users/user/anaconda2/envs/adv/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 2229, in __call__

feed_dict=feed_dict)


 "/Users/user/anaconda2/envs/adv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 778, in run

run_metadata_ptr)


 "/Users/user/anaconda2/envs/adv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 933, in _run

+ e.args[0])
TypeError: Cannot interpret feed_dict key as Tensor: Can not convert a int into a Tensor.

Traceback (most recent call last):


 "/home/hongzhi/wp/irgan/Question-Answer/baseline.py", line 229, in <module>

main()


 "/home/hongzhi/wp/irgan/Question-Answer/baseline.py", line 195, in main

loss="pair")


 "/home/hongzhi/wp/irgan/Question-Answer/Discriminator.py", line 15, in __init__

learning_rate=learning_rate, embeddings=embeddings, loss=loss, trainable=trainable)


 "/home/hongzhi/wp/irgan/Question-Answer/QACNN.py", line 70, in __init__

q = self.getRepresentation(self.input_x_1)


 "/home/hongzhi/wp/irgan/Question-Answer/QACNN.py", line 101, in getRepresentation

pooled_reshape = tf.reshape(tf.concat(3, output), [-1, self.num_filters_total])


 "/home/hongzhi/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1043, in concat

dtype=dtypes.int32).get_shape(


 "/home/hongzhi/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 676, in convert_to_tensor

as_ref=False)


 "/home/hongzhi/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 741, in internal_convert_to_tensor

ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)


 "/home/hongzhi/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/constant_op.py", line 113, in _constant_tensor_conversion_function

return constant(v, dtype=dtype, name=name)


 "/home/hongzhi/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/constant_op.py", line 102, in constant

tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))


 "/home/hongzhi/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 374, in make_tensor_proto

_AssertCompatible(values, dtype)


 "/home/hongzhi/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible

(dtype.name, repr(mismatch), type(mismatch).__name__))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
