SetScalar 函数功能设置shape为标量。 函数原型void SetScalar() 参数说明无。 返回值说明无。 约束说明无。 调用示例Shape shape0({3, 256, 256}); shape0.IsScalar(); // false shape0.SetScalar(); shape0.IsScalar(); // true 父主题: Shape