在张量流PB文件中,“^”是什么意思?

时间:2017-08-02 12:44:29

标签: tensorflow protocol-buffers

我编写了以下代码并执行了,然后生成了一个名为test.pb的PB文件。

import tensorflow as tf
import numpy as np

x = tf.placeholder(tf.float32, shape=[1,2,3,4], name="x")
mu, sigma = tf.nn.moments(x, [0,1,2])
in_data = np.array([i for i in range(24)]).reshape([1,2,3,4])

sess = tf.InteractiveSession()
sess.run(tf.global_variables_initializer())
print sess.run([mu, sigma], feed_dict={x: in_data})

tf.train.write_graph(sess.graph_def, "./", "test.pb")

test.pb中,有一个节点:

node {
  name: "moments/normalize/divisor"
  op: "Reciprocal"
  input: "moments/sufficient_statistics/Const"
  input: "^moments/sufficient_statistics/mean_ss"
  input: "^moments/sufficient_statistics/var_ss"
  attr {
    key: "T" 
    value {
      type: DT_FLOAT
    }   
  }
}

我的问题是标点^^moments/sufficient_statistics/mean_ss^moments/sufficient_statistics/var_ss中的含义是什么?

0 个答案:

没有答案