def get_init_state(self, batch_size):
'''
Construct the initial state of the grammar state machine.
Returns:
A tensor of dtype tf.int32 with shape (batch_size,)
'''
return tf.zeros((batch_size,), dtype=tf.int32)
abstract.py 文件源码
python
阅读 28
收藏 0
点赞 0
评论 0
评论列表
文章目录