explosive increase in data information, however, significantly challenges the conventional von Neumann architecture in which sensing, memory, and computing functions are realized by discrete devices. In this circumstance, the integration of multifunctions in a single device, such as in-memory photodetectors, is regarded as an ideal solution to this problem. [7][8][9][10] These devices can not only dramatically simplify the conventional image sensor circuitry, but also be applied as a wide variety of photonic synaptic devices for neuromorphic computing and objects recognition in a complex environment. [11,12] Accordingly, it is necessary to explore novel materials and innovative device structures in photodetection with integrated working modes, which can accommodate the explosive data flows. [13] Among numerous novel materials, 2D materials are promising type of media for the evolution of in-memory photodetection. [14][15][16] On the one hand, 2D-material-based flash memories demonstrate ultrafast (nano seconds) operation speeds and long-term non-volatile property (10 years), owing to the atomically sharp interface and optimized barrier height. [17][18][19] On the other hand, their superior optoelectronic characteristics make them ideal photodetecting materials, considering their unique features of absences of dangling bonds [20][21][22] and tunable bandgaps. [23][24][25] Regarding the current research into 2D-material-based highperformance in-memory photodetectors, charge-storage effect is a practical approach. [15] Different from the working flow of normal photo detectors, this kind of in-memory photodetectors generally photosensitize at a positive or negative gate voltage to realize non-volatile charge writing and erasing. [26,27] In this vein, a few attempts at achieving charge storage have been carried out, which however yielded unsatisfactory photodetection or memory performances. [27][28][29][30] For instance, the MoS 2 / functionalized SiO 2 device with interface charge trap yields low readout photocurrent (<10 nA) and short non-volatile retention characteristic (≈20 s). [27] The floating gate structure of MoS 2 /h-BN/MoS 2 on Si/SiO 2 substrate showed longer retention time (>10 4 s) but suffers from the weakness of low readout photocurrent (only ≈100 nA). [28] Furthermore, the chargestorage mechanisms of almost all in-memory photo detectors are only at the hypothesis stage, lacking direct experimentalThe emerging data-intensive applications in optoelectronics are driving innovation toward the fused integration of sensing, memory, and computing to break through the restrictions of the von Neumann architecture. However, the present photodetectors with only optoelectronic conversion functions cannot satisfy the growing demands of the multifunctions required in single devices. Here, a novel route for the integration of non-volatile memory into a photodetector is proposed, with a WSe 2 /h-BN van der Waals heterostructure on a Si/SiO 2 substrate to realize in-memory photodetection. This photodetector exhibits a...