(self, *inputs)
| 144 | self.apply(param.name, param, grad) |
| 145 | |
| 146 | def device_check(self, *inputs): |
| 147 | flag = inputs[0].device.graph_enabled() |
| 148 | inputs[0].device.EnableGraph(False) |
| 149 | x_device = inputs[0].device |
| 150 | x_dev_id = x_device.id() |
| 151 | for var in inputs: |
| 152 | if var.device.id() != x_dev_id: |
| 153 | var.to_device(x_device) |
| 154 | inputs[0].device.EnableGraph(flag) |
| 155 | |
| 156 | @deprecated( |
| 157 | reason= |
no test coverage detected