MCPcopy Create free account
hub / github.com/MrNothing/AI-Blocks / GetAllWeightsCount

Function GetAllWeightsCount

Sources/scripts/graph.py:15–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13 return self.model_elements[i]
14
15def GetAllWeightsCount(self):
16 sum = 0
17 for i in range(len(self.model_elements)):
18 obj = self.model_elements[i]
19 if hasattr(obj, 'total_weights'):
20 sum+=obj.total_weights
21
22 return sum
23
24def getVariables(self):
25 variables = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected