A discovery of neural network architectures for context-dependent computations