MCPcopy Create free account
hub / github.com/pytorch/executorch / __init__

Method __init__

backends/qualcomm/_passes/seq_mse.py:35–52  ·  view source on GitHub ↗
(
        self,
        nominal_weight,
        nominal_bias,
        operator,
        observer,
        num_candidates,
    )

Source from the content-addressed store, hash-verified

33 """
34
35 def __init__(
36 self,
37 nominal_weight,
38 nominal_bias,
39 operator,
40 observer,
41 num_candidates,
42 ):
43 super().__init__()
44 self.nominal_weight = nominal_weight
45 self.nominal_bias = nominal_bias
46 self.observer = observer
47 self.coarse_steps = torch.linspace(
48 1 / num_candidates, 1, steps=num_candidates
49 ).tolist()
50 self.num_fine = num_candidates
51 self.operator = self._make_operator(operator)
52 self.best_candidate_step = 1.0
53
54 def _make_operator(self, aten_op):
55 if aten_op.target == torch.ops.aten.conv2d.default:

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

_make_operatorMethod · 0.95

Tested by

no test coverage detected