예제 #1
0
 def func(node):
     return sum(rm.amin(node, axis, keepdims=keep_dimensions))
예제 #2
0
 def func_imul2(node, x):
     x *= node
     return sum(node)
예제 #3
0
 def func_div2(node, x):
     return sum(node / x)
예제 #4
0
 def func_isub2(node, x):
     x -= node
     return sum(node)
예제 #5
0
 def func_mul2(node, x):
     return sum(node * x)
예제 #6
0
 def func_iadd2(node, x):
     x += node
     return sum(node)
예제 #7
0
 def func_sub2(node, x):
     return sum(node - x)
예제 #8
0
 def func(node):
     return sum(sigmoid(node))
예제 #9
0
 def func(node):
     return sum(rm.elu(node))
예제 #10
0
 def func_idiv2(node, x):
     x /= node
     return sum(node)
예제 #11
0
 def func(node):
     return sum(tanh(node))
예제 #12
0
 def func(node, keepdims):
     return sum(rm.mean(node, axis=axis, keepdims=keepdims))
예제 #13
0
 def func(node, x):
     return sum(rm.smoothed_l1(node, x, delta, reduce_sum=False))
예제 #14
0
 def func(node):
     return sum(node[index])
예제 #15
0
 def func(node):
     return sum(layer(node))
예제 #16
0
 def func(node):
     return sum(rm.leaky_relu(node))
예제 #17
0
 def func(node):
     if is_cuda_active():
         curand_generator().set_seed(seed)
     else:
         np.random.seed(seed)
     return sum(layer(node))
예제 #18
0
 def func(node):
     return sum(rm.softplus(node))
예제 #19
0
 def func_sub1(node, x):
     return sum(x - node)
예제 #20
0
 def func(node):
     return sum(rm.swish(node))
예제 #21
0
 def func_isub1(node, x):
     node -= x
     return sum(node)
예제 #22
0
 def func(node):
     return sum(rm.softsign(node))
예제 #23
0
 def func_mul1(node, x):
     return sum(x * node)
예제 #24
0
 def func(node):
     ret = layer(node)
     if len(ret.shape) > 2:
         return sum(layer3(ret))
     else:
         return sum(layer2(ret))
예제 #25
0
 def func_imul1(node, x):
     node *= x
     return sum(node)
예제 #26
0
 def func(node):
     ret = node
     reta = l0(node)
     ret = l1(reta, reta)
     ret = l2(ret.reshape(ret.shape[0], -1))
     return sum(ret)
예제 #27
0
 def func_div1(node, x):
     return sum(x / node)
예제 #28
0
 def func(node, rois):
     return sum(layer(node, rois))
예제 #29
0
 def func_idiv1(node, x):
     node /= x
     return sum(node)
예제 #30
0
 def func(node):
     return sum(rm.maxout(node, axis=axis))