in maddpg/common/tf_util.py [0:0]
def is_placeholder(x): return type(x) is tf.Tensor and len(x.op.inputs) == 0