예제 #1
0
 def fn(x):
   return xla.reduce(
       x, init_value=1, dimensions_to_reduce=dims, reducer=mul_reducer)
예제 #2
0
 def fn(x):
   return xla.reduce(
       x, init_value=1, dimensions_to_reduce=dims, reducer=mul_reducer)
예제 #3
0
 def fn(x):
   return xla.reduce(
       x, init_value=0, dimensions_to_reduce=dims, reducer=sum_reducer)
예제 #4
0
 def fn(x):
   return xla.reduce(
       x, init_value=0, dimensions_to_reduce=dims, reducer=sum_reducer)