示例#1
0
文件: precision.py 项目: 1950/sawbuck
def _get_precisions(typecodes):
    lst = []
    for t in typecodes:
        lst.append( (zeros( (1,), t ).itemsize*8, t) )
    return lst
示例#2
0
def _get_precisions(typecodes):
    lst = []
    for t in typecodes:
        lst.append((zeros((1, ), t).itemsize * 8, t))
    return lst
示例#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()