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

Method __pow__

tensorflow/contrib/specs/python/specs_lib.py:103–110  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

101 return Operator(operator.mul, self, g)
102
103 def __pow__(self, n):
104 assert n >= 0
105 if n == 0:
106 return Function(lambda x, *args, **kw: x)
107 result = self
108 for _ in range(n-1):
109 result = Composition(result, self)
110 return result
111
112
113class Callable(Composable):

Callers

nothing calls this directly

Calls 3

CompositionClass · 0.85
FunctionClass · 0.70
rangeFunction · 0.50

Tested by

no test coverage detected