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