'Construct an instance of the rule for `op`.
Args:
op: The Operation to differentiate through.
colocate_gradients_with_ops: currently unsupported
gate_gradients: currently unsupported'

def __init__(self, op, colocate_gradients_with_ops=False, gate_gradients=False):

    assert (op.node_def.op == 'MatMul')
    self.op = op
    self.colocate_gradients_with_ops = colocate_gradients_with_ops
    self.gate_gradients = gate_gradients
