MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _LayerMatch

Class _LayerMatch

tensorflow/contrib/quantize/python/quantize.py:609–643  ·  view source on GitHub ↗

Contains all information related to a matched Layer.

Source from the content-addressed store, hash-verified

607
608
609class _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
646def _FollowedByFakeQuant(tensor):

Callers 1

_FindLayersToQuantizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected