Multi-Layer Optimization Aspects Of Deep Learning And Mimo-Based Communication Systems