Hi @Roshni_Pathak , it looks like the input being passed to Occlusion here - tuple(clinical) - is a tuple of 2 numpy arrays. It is expected that the input should be a torch tensor.
For the sliding window shape, if your model’s input will still be 2 separate tensors, then the sliding window shape of each should be a separate tuple with one element e.g. ((9,), (9,)). This corresponds to one sliding window of length 9, which is equivalent to occluding each of the full input tensors together.
Alternatively, if the input to the model (or wrapper forward function) would be a tensor of shape 2x9 such as the initial clinical tensor, then the sliding window shape can just be provided as (9,). The stride for Occlusion is not relevant if the sliding window covers the entire tensor, since it will not be shifted. If you would like to occlude smaller segments of the tensor, a smaller sliding window can be selected, with stride defining the shift of the window at each step. For more info regarding the Occlusion parameters, you can refer to the documentation here 4.