Thanks for your reply,
actually i need to convert the tensor generated by a convolution layer to numpy coz i have to find the maximum and minimum pixel values in each feature map. this helps me to identify the range of pixels in each feature map and then do the rest of computations.
i tried to convert a tensor to numpy using mytensor.numpy() inside custom layer. however this also didn’t work.