def create_placeholders(self):
"""Create placeholders and append them to list."""
self.inputs_pl_list.append(
tf.placeholder(tf.float32, shape=[None, None, self.input_size],
name='input'))
self.labels_pl_list.append(
tf.SparseTensor(tf.placeholder(tf.int64, name='indices'),
tf.placeholder(tf.int32, name='values'),
tf.placeholder(tf.int64, name='shape')))
self.labels_sub_pl_list.append(
tf.SparseTensor(tf.placeholder(tf.int64, name='indices_sub'),
tf.placeholder(tf.int32, name='values_sub'),
tf.placeholder(tf.int64, name='shape_sub')))
self.inputs_seq_len_pl_list.append(
tf.placeholder(tf.int32, shape=[None], name='inputs_seq_len'))
self.keep_prob_pl_list.append(
tf.placeholder(tf.float32, name='keep_prob'))
multitask_ctc.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录