返回顶部 get_shape 功能说明获取张量形状。 函数原型1get_shape() -> List[int] 参数说明无 返回值说明(List[int]) 形状列表。 约束说明如果获取失败,抛出RuntimeError。 父主题: Tensor