Esempio n. 1
0
def _get_precisions(typecodes):
    lst = []
    for t in typecodes:
        lst.append( (zeros( (1,), t ).itemsize*8, t) )
    return lst
Esempio n. 2
0
def _get_precisions(typecodes):
    lst = []
    for t in typecodes:
        lst.append((zeros((1, ), t).itemsize * 8, t))
    return lst
Esempio n. 3
0
 def __init__(self, layer):
     self.weights = zeros([layer.num_units, layer.prev_layer.num_units])
     self.unit_outputs = zeros([layer.num_units])
     self.unit_total_inputs = zeros([layer.num_units])
     self.reset()