Contains all information related to a matched Layer.
| 607 | |
| 608 | |
| 609 | class _LayerMatch(object): |
| 610 | """Contains all information related to a matched Layer.""" |
| 611 | |
| 612 | def __init__(self, layer_op, weight_tensor, activation_op, bypass_op, |
| 613 | post_activation_bypass_op, bias_add_op): |
| 614 | self._layer_op = layer_op |
| 615 | self._weight_tensor = weight_tensor |
| 616 | self._activation_op = activation_op |
| 617 | self._bypass_op = bypass_op |
| 618 | self._post_activation_bypass_op = post_activation_bypass_op |
| 619 | self._bias_add_op = bias_add_op |
| 620 | |
| 621 | @property |
| 622 | def layer_op(self): |
| 623 | return self._layer_op |
| 624 | |
| 625 | @property |
| 626 | def weight_tensor(self): |
| 627 | return self._weight_tensor |
| 628 | |
| 629 | @property |
| 630 | def activation_op(self): |
| 631 | return self._activation_op |
| 632 | |
| 633 | @property |
| 634 | def bypass_op(self): |
| 635 | return self._bypass_op |
| 636 | |
| 637 | @property |
| 638 | def post_activation_bypass_op(self): |
| 639 | return self._post_activation_bypass_op |
| 640 | |
| 641 | @property |
| 642 | def bias_add_op(self): |
| 643 | return self._bias_add_op |
| 644 | |
| 645 | |
| 646 | def _FollowedByFakeQuant(tensor): |
no outgoing calls
no test coverage detected