Updated gradient scalar output to use new Execution Object method
Gradient scalar output should use PrepareForExecution(Device) function for creating the execution object based on the DeviceAdapter.
Edited by Matthew Letter
Gradient scalar output should use PrepareForExecution(Device) function for creating the execution object based on the DeviceAdapter.