我创建了一个名为“op testing”的tf占位符:
self.center_words = tf.placeholder(tf.int32, shape=[self.batch_size], name='op testing')
print("Extracting the op", self.center_words.op)
当我打印self.center_words.op时,它会打印出这样的结构:
op: "Placeholder"
attr {
key: "dtype"
value {
type: DT_INT32
}
}
attr {
key: "shape"
value {
shape {
dim {
size: 128
}
}
}
}
这适用于任何TensorFlow变量、函数输出等,那么这个.op是什么?