1 | function getOperationShapeNames(model) {
|
2 | var operationShapeNames = [];
|
3 | var operations = model.operations;
|
4 |
|
5 | for (var operationName of Object.keys(operations)) {
|
6 | var operation = operations[operationName];
|
7 | if (operation.input && operation.input.shape) {
|
8 | operationShapeNames.push(operation.input.shape);
|
9 | }
|
10 | if (operation.output && operation.output.shape) {
|
11 | operationShapeNames.push(operation.output.shape);
|
12 | }
|
13 | }
|
14 |
|
15 | return operationShapeNames;
|
16 | };
|
17 |
|
18 | module.exports = {
|
19 | getOperationShapeNames: getOperationShapeNames
|
20 | }; |
\ | No newline at end of file |