get inputs and outputs from a given operator Args: op: a given operator Returns: inputs and outputs of the op
(cls, op)
| 662 | |
| 663 | @classmethod |
| 664 | def _get_singa_op_inputs_outputs(cls, op): |
| 665 | """ |
| 666 | get inputs and outputs from a given operator |
| 667 | Args: |
| 668 | op: a given operator |
| 669 | Returns: |
| 670 | inputs and outputs of the op |
| 671 | """ |
| 672 | outputs = [op.output_name(idx) for _, idx in op.y_id2idx.items()] |
| 673 | inputs = [ |
| 674 | srcop.output_name(srcop.y_id2idx[yid]) |
| 675 | for (srcop, yid, _, _) in op.src |
| 676 | ] |
| 677 | return inputs, outputs |
| 678 | |
| 679 | @classmethod |
| 680 | def _get_singa_op_type(cls, op): |
no test coverage detected