Nabu-asr
Public Member Functions | List of all members
nabu.neuralnetworks.components.constraints.MaxNorm Class Reference

a constraint for a maximum norm of the weights More...

Inheritance diagram for nabu.neuralnetworks.components.constraints.MaxNorm:

Public Member Functions

def __init__ (self, max_norm=1, axis=0)
 constructor More...
 
def __call__ (self, tensor)
 apply the constraint More...
 

Detailed Description

a constraint for a maximum norm of the weights

Constructor & Destructor Documentation

§ __init__()

def nabu.neuralnetworks.components.constraints.MaxNorm.__init__ (   self,
  max_norm = 1,
  axis = 0 
)

constructor

Parameters
max_normthe maximum norm
axisthe axis to compute the norm

Member Function Documentation

§ __call__()

def nabu.neuralnetworks.components.constraints.MaxNorm.__call__ (   self,
  tensor 
)

apply the constraint

Parameters
tensorthe tensor to apply the constraint to

The documentation for this class was generated from the following file: