TA-GATES: An Encoding Scheme for Neural Network Architectures