Ray-Tracing for Conditionally Activated Neural Networks