MCPcopy
hub / github.com/ddbourgin/numpy-ml / __init__

Method __init__

numpy_ml/tests/nn_torch_models.py:83–85  ·  view source on GitHub ↗
(self, lambda_=10)

Source from the content-addressed store, hash-verified

81
82class TorchWGANGPLoss(nn.Module):
83 def __init__(self, lambda_=10):
84 self.lambda_ = torchify([lambda_])
85 super(TorchWGANGPLoss, self).__init__()
86
87 def forward(self, Y_real, Y_fake, gradInterp):
88 GY_fake = Y_fake.copy()

Callers

nothing calls this directly

Calls 2

torchifyFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected