DeepLogic: Joint Learning of Neural Perception and Logical Reasoning