SNABSuite  0.x
Spiking Neural Architecture Benchmark Suite
Public Member Functions | Public Attributes | List of all members
convert_weights.WeightClip Class Reference
Inheritance diagram for convert_weights.WeightClip:

Public Member Functions

def __init__ (self, c=2)
 
def __call__ (self, p)
 
def get_config (self)
 

Public Attributes

 c
 

Detailed Description

Clips the weights incident to each hidden unit to be inside a range

Definition at line 15 of file convert_weights.py.

Constructor & Destructor Documentation

def convert_weights.WeightClip.__init__ (   self,
  c = 2 
)

Definition at line 18 of file convert_weights.py.

18  def __init__(self, c=2):
19  self.c = c
20 

Member Function Documentation

def convert_weights.WeightClip.__call__ (   self,
  p 
)

Definition at line 21 of file convert_weights.py.

21  def __call__(self, p):
22  return K.clip(p, -self.c, self.c)
23 
def convert_weights.WeightClip.get_config (   self)

Definition at line 24 of file convert_weights.py.

24  def get_config(self):
25  return {'name': self.__class__.__name__,
26  'c': self.c}
27 

Member Data Documentation

convert_weights.WeightClip.c

Definition at line 19 of file convert_weights.py.


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