Container

Warning

Documentation for the module is under development.

Info

This module is intended primarily for developers who want to better understand the structure of the library, as well as those who are going to implement their own modules.

Description

Parent class for all containers.

Initializing

def __init__(self, name=None):

Parameters

Parameter Allowed types Description Default
name str Name of the container. None

Explanations

-

Methods

getBlueprint

def getBlueprint(self):

Functionality

-

Parameters

-

Explanations

-

append

def append(self, mod):

Functionality

-

Parameters

-

Explanations

-

pop

def pop(self, mod):

Functionality

-

Parameters

-

Explanations

-

getByName

def getByName(self, name):

Functionality

-

Parameters

-

Explanations

-

getAllByType

def getAllByType(self, typ):

Functionality

-

Parameters

-

Explanations

-

__getitem__

def __getitem__(self, item):

Functionality

-

Parameters

-

Explanations

-

setVar

def setVar(self, name, var):

Functionality

-

Parameters

-

Explanations

-

getVar

def getVar(self, name):

Functionality

-

Parameters

-

Explanations

-

getVarTable

def getVarTable(self, vartable=None, name=None, root=True):

Functionality

-

Parameters

-

Explanations

-

setAttr

def setAttr(self, name, attr):

Functionality

-

Parameters

-

Explanations

-

getAttr

def getAttr(self, name):

Functionality

-

Parameters

-

Explanations

-

hasAttr

def hasAttr(self, name):

Functionality

-

Parameters

-

Explanations

-

zeroGradParams

def zeroGradParams(self):

Functionality

-

Parameters

-

Explanations

-

updateParams

def updateParams(self, learnRate):

Functionality

-

Parameters

-

Explanations

-

genericCheckDataType

def genericCheckDataType(self, dtype):

Functionality

-

Parameters

-

Explanations

-

save

def save(self, hdf=None, varlinks=None, name=None, compress="gzip", assumeUniqueNames=False, withBlueprint=False,

Functionality

-

Parameters

-

Explanations

-

load

def load(self, hdf, initvars=None, name=None, assumeUniqueNames=False, isRoot=True):

Functionality

-

Parameters

-

Explanations

-

trainMode

def trainMode(self):

Functionality

-

Parameters

-

Explanations

-

evalMode

def evalMode(self):

Functionality

-

Parameters

-

Explanations

-

reset

def reset(self):

Functionality

-

Parameters

-

Explanations

-

__str__

def __str__(self):

Functionality

-

Parameters

-

Explanations

-

numOfParams

def numOfParams(self):

Functionality

-

Parameters

-

Explanations

-

paramSize

def paramSize(self, unit="kb"):

Functionality

-

Parameters

-

Explanations

-

updateData

def updateData(self, data):

Functionality

-

Parameters

-

Explanations

-

updateGrad

def updateGrad(self, grad):

Functionality

-

Parameters

-

Explanations

-

dataShapeFrom

def dataShapeFrom(self, shape):

Functionality

-

Parameters

-

Explanations

-

gradShapeFrom

def gradShapeFrom(self, shape):

Functionality

-

Parameters

-

Explanations

-