After I read the paper, I know that events are split and accumulate by timestamp, and this method looks like a voxelgrid approach to convert event stream to a tensor.
First, I didn't understand the opreation of the code in the file codes/data/utils.py 38th row. Can you explain this to help me further undersatnd it.

Second, when I tried to visualize the results of this event tensor, I found the output picture is black, and the most value of the tensor E are zero.

After I read the paper, I know that events are split and accumulate by timestamp, and this method looks like a voxelgrid approach to convert event stream to a tensor.


First, I didn't understand the opreation of the code in the file codes/data/utils.py 38th row. Can you explain this to help me further undersatnd it.
Second, when I tried to visualize the results of this event tensor, I found the output picture is black, and the most value of the tensor E are zero.