Classes | Functions
infill_loss Namespace Reference

Classes

class  InfillLossCollection
 
class  InfillLossInduction
 

Functions

def _assert_no_grad (variable)
 

Detailed Description

HolePixelLoss
This loss mimics nividia's pixelwise loss for holes (L1)
used in the infill network

Loss function designed for a network that infills tracks. Separate functions for collection views
(unipolar signals) and induction views (bipolar signal)
Taken from github.com/NuTufts/sparse_infill.

Function Documentation

def infill_loss._assert_no_grad (   variable)
private

Definition at line 16 of file infill_loss.py.

16 def _assert_no_grad(variable):
17  assert not variable.requires_grad, \
18  "nn criterions don't compute the gradient w.r.t. targets - please " \
19  "mark these variables as not requiring gradients"
20 
21 
def _assert_no_grad(variable)
Definition: infill_loss.py:16