We are using this fucntion instead of == operator because optional-value comparison between empty device_options and {device_type:0, device_id:0} returns not equal in some cases.
(src, dst)
| 2423 | |
| 2424 | |
| 2425 | def device_equal(src, dst): |
| 2426 | ''' |
| 2427 | We are using this fucntion instead of == operator because optional-value |
| 2428 | comparison between empty device_options and {device_type:0, device_id:0} |
| 2429 | returns not equal in some cases. |
| 2430 | ''' |
| 2431 | return src.device_type == dst.device_type and src.device_id == dst.device_id |
| 2432 | |
| 2433 | |
| 2434 | def update_placeholder_op_output(op, blob_to_device): |
no outgoing calls
no test coverage detected
searching dependent graphs…