Shape接口 接口功能获取输出张量的维度值,以数组的形式返回。 接口格式virtual const std::vector<int64_t> &Shape() const noexcept = 0; 接口参数无。 使用样例std::vector<int64_t> shape = output->Shape(); 返回值返回输出张量维度数组。 父主题: Output类