Persistence of topological phases in non-Hermitian quantum walks