if source.output.batch_dim_axis != batch_axis:
x2 = swapaxes(x2, batch_axis, source.output.batch_dim_axis)
r = op(x, x2)
if r_last is not None:
r = tf.logical_and(r_last, r)
r_last = r
self.output.placeholder = r_last
@classmethod
After Change
r_last = opt_logical_and(r_last, op(x, x2))
x = x2
if value is not None:
r_last = opt_logical_and(r_last, op(x, value))
self.output.placeholder = r_last
@classmethod