MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

machine_learning/automatic_differentiation.py:138–144  ·  view source on GitHub ↗
(
        self,
        op_type: OpType,
        other_params: dict | None = None,
    )

Source from the content-addressed store, hash-verified

136 """
137
138 def __init__(
139 self,
140 op_type: OpType,
141 other_params: dict | None = None,
142 ) -> None:
143 self.op_type = op_type
144 self.other_params = {} if other_params is None else other_params
145
146 def add_params(self, params: list[Variable]) -> None:
147 self.params = params

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected