Algorithmically-consistent deep learning frameworks for structural topology optimization. (November 2021)