ONE - On-device Neural Engine
|
Data Structures | |
class | CircleModel |
class | Dim |
class | ModelEditor |
class | Shape |
Functions | |
std::ostream & | operator<< (std::ostream &os, const Shape &shape) |
Print the shape in format [1, 2, 3]. | |
std::vector< Shape > | parse_shapes (const std::string &shapes) |
Parse shapes from string representation to Shapes object. | |
std::ostream & circle_resizer::operator<< | ( | std::ostream & | os, |
const Shape & | shape | ||
) |
Print the shape in format [1, 2, 3].
Definition at line 86 of file Shape.cpp.
References circle_resizer::Shape::is_scalar(), and circle_resizer::Shape::rank().
std::vector< Shape > circle_resizer::parse_shapes | ( | const std::string & | shapes | ) |
Parse shapes from string representation to Shapes object.
The single shape is represented by comma-separated integers inside squared brackets. If there is more than one shape, they are separated by commas. An example for single shape: [1,2,3], an example for many shapes: [1,2,3],[4,5].
Exceptions: std::invalid_argument if the parsing failed.
Definition at line 65 of file ShapeParser.cpp.
Referenced by entry().