get_shape接口 接口功能获取张量对象shape。 C++函数原型const std::vector<int64_t> &GetShape() const Python函数get_shape() 接口参数无。 使用样例获取tensor shape。 1shape = infer_tensor.get_shape() 父主题: InferTensor