Hi,
Sorry for the late reply. You need to determine dimension along which you need the max value from the weight tensor becuase different layers will have different multiple dimensions, for example linear layers will have (out_features,in_features) shape with 2 dimensions.