adding error return to handle mismatched device usgae between BakePlan and EnqueueTransform