Not sure if that would solve the problem (haven’t used the profiler, yet), but maybe it only works with contiguous arrays/tensors (based on the error message you got)? In that case, maybe try to append a .contiguous() to all the places where you use view. E.g.,
self.convblock1(x).view(-1, self.num_filters1).contiguous()
instead of just
self.convblock1(x).view(-1, self.num_filters1)
Or maybe just check which ones are non-contiguous first by using .is_contiguous() and apply it only to tensors of necessary