Differentiable Grammars for Videos