Motivation
We'd like to use empty() method on graphs, instead of relaying on get_nodes(). When SYCL will switch to new implementation - native L0 graphs - the get_nodes() method won't work.
empty() method, on the other hand, does work for both types of graphs.
Please see: intel/llvm#21554
Pull Request resolved: #184535
Approved by: https://github.com/gujinghui, https://github.com/guangyey
Co-authored-by: Łukasz Ślusarczyk [email protected]