Neural Tensor Dynamics