Hi,

I am trying to write a caffe model in pytorch but they are using a crop module not implemented in pytorch, which is taking as input a [1,3,224,224] tensor and a [1,1,300,300]

and output a [1,3,224,224] tensor which should be a cropped version of the [1,1,300,300].

I tried slicing but I till end up with a [1,1,224,224] tensor and I really don’t understand what they are doing. Any idea what is happening and how I should do it in pytorch ?

the model

Yours

Justin