Setting specific device for Trainer

This issue still exists. Thanks.