def apop_stack(z, stack, op_id): tangent.push_stack(stack, d[z], d[op_id])
def tpush_stack(x, stack, op_id): tangent.push_stack(d[stack], d[x], d[op_id])