Hello ankit108,
This task property is not writable - it is an indication, whether the procedure uses GPU or not (mainly this property is utilized in network processing, when CPU or GPU capability is assigned to the processing nodes).
If you want to apply or disable GPU utilization for GPU-supported tasks you should modify Metashape.app.gpu_mask accordingly before the task start.