xla
xla copied to clipboard
Add IsVirtualDeivce() and refactor
This addresses the following to support #6322
- add IsVirtualDeivce()
- Un-const
tensorsargument toXLAGraphExecutor::Compilemethod, since they can be updated during auto-sharding paass. - refactor to remove redundant codes