Text this: Systems resource allocation algorithm for RIS-assisted D2D secure communication based on parallel CNN