def wrap_pholder(self, ph, feed):
"""wrap layer.h into placeholders"""
phtype = type(self.lay.h[ph])
if phtype is not dict: return
sig = '{}/{}'.format(self.scope, ph)
val = self.lay.h[ph]
self.lay.h[ph] = tf.placeholder_with_default(
val['dfault'], val['shape'], name = sig)
feed[self.lay.h[ph]] = val['feed']
评论列表
文章目录