目录

SetScalar

Function Description

Sets a shape to a scalar.

Function Prototype

void SetScalar()

Parameters

None

Return Value

None

Restrictions

None

Calling Example

Shape shape0({3, 256, 256});
shape0.IsScalar(); // false
shape0.SetScalar();
shape0.IsScalar(); // true