bc518794

By: CHANGE_ME <CHANGE@ME.ch>

preserve dual endpoints during tensor canonicalization [skip ci]