MCPcopy Create free account
hub / github.com/apache/singa / __init__

Method __init__

python/singa/autograd.py:495–503  ·  view source on GitHub ↗

Args: min (float): min value, under which element is replaced by min. max (float): max value, above which element is replaced by max.

(self, min, max)

Source from the content-addressed store, hash-verified

493 """
494
495 def __init__(self, min, max):
496 """
497 Args:
498 min (float): min value, under which element is replaced by min.
499 max (float): max value, above which element is replaced by max.
500 """
501 super(Clip, self).__init__()
502 self.max = max
503 self.min = min
504
505 def forward(self, x):
506 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected