basic_rnn.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:tf-tutorial 作者: zchen0211 项目源码 文件源码
def _get_flat_core_sizes(cores):
  """Obtains the list flattened output sizes of a list of cores.

  Args:
    cores: list of cores to get the shapes from.

  Returns:
    List of lists that, for each core, contains the list of its output
      dimensions.
  """
  core_sizes_lists = []
  for core in cores:
    flat_output_size = nest.flatten(core.output_size)
    core_sizes_lists.append([tensor_shape.as_shape(size).as_list()
                             for size in flat_output_size])
  return core_sizes_lists
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号