MCPcopy Create free account
hub / github.com/conflow-dev/ConFlow / _e_where_equal_grad

Function _e_where_equal_grad

model_demo/DeepCrossing/operators.py:121–123  ·  view source on GitHub ↗
(op,grad)

Source from the content-addressed store, hash-verified

119 return trainer_ops.e_where_equal(input1,input2,cond1,cond2,eid_low=(eid&0xFFFFFFFF),eid_high=(eid>>32),times=times)
120@ops.RegisterGradient("EWhereEqual")
121def _e_where_equal_grad(op,grad):
122 with tf.name_scope("EWhereEqualGrad"), tf.xla.experimental.jit_scope(compile_ops=False):
123 return trainer_ops.e_where_equal_grad(grad,op.inputs[0],op.inputs[1],op.inputs[2],op.inputs[3],eid_low=op.get_attr("eid_low"), eid_high=op.get_attr("eid_high"),times = op.get_attr("times"))[0],trainer_ops.e_where_equal_grad(grad,op.inputs[0],op.inputs[1],op.inputs[2],op.inputs[3],eid_low=op.get_attr("eid_low"), eid_high=op.get_attr("eid_high"),times = op.get_attr("times"))[1],None,None
124
125def e_where_gequal(input1,input2,cond1,cond2):
126 global eid,times

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected