2D Materials‐Based Photodetectors with Bi‐Directional Responses in Enabling Intelligent Optical Sensing | Synapse