는 네트워크 저장하고이름 지정
def createForward(self):
# forward propogation
Z = tf.add(tf.matmul(self.W,self.prevLayer.A),self.b)
self.Z = tf.nn.dropout(Z,self.keepProb,name = self.name+'_Z')
print(self.name+'_Z',self.Z)
을 복원 한 후 self.name '가 출력되면 그래서 그것을 액세스 할 수있는 텐서 작업 의 결과 이름을 시도하는 코드이다 '내가 실제로 무엇을 얻을
output_Z Tensor("output_Z:0", shape=(3, ?), dtype=float32)
를 인쇄하는 인쇄 문을 기대하고하는 것은
output_Z Tensor("output_Z/mul:0", shape=(3, ?), dtype=float32)
,369입니다
누군가 일어나는 일을 설명 할 수 있습니까?
덕분에
드롭 아웃 작업이 때문에'tf.add (tf.matmul (A, W), B) 내가 가진 .op.name' '추가'에서하지만'TF에서, 이상하다. nn.dropout (the_previous_op) .op.name' 나는 "dropout/mul"을 얻었습니다. – lerner
self.Z가 연산이고 연산 이름이 추가되지만 여기서 이상한 방식으로 보입니다. – lerner