def _get_precisions(typecodes): lst = [] for t in typecodes: lst.append( (zeros( (1,), t ).itemsize*8, t) ) return lst
def _get_precisions(typecodes): lst = [] for t in typecodes: lst.append((zeros((1, ), t).itemsize * 8, t)) return lst
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()