first thing i have x-ray iamge
and want to get final conv-layer in denesenet model
theb get the output of this layer so i can pass the images in it and get
output of this layer then use it in my next process
i can do it using keras by this way but wan to try this way in pytorch and cannot write it
by pytorch libaray
keras code:
# Get the 512 input weights to the softmax.
    class_weights = model.layers[-1].get_weights()[0]
    final_conv_layer = get_output_layer(model, "bn")
    get_output = kb.function([model.layers[0].input], [final_conv_layer.output, model.layers[-1].output])
    [conv_outputs, predictions] = get_output([np.array([img_transformed])])
    conv_outputs = conv_outputs[0, :, :, ]