def make_trainable(net, val):
    net.trainable = val
    for layer in net.layers:
        layer.trainable = val
def make_trainable(net, val):
    net.trainable = val
    for layer in net.layers:
        layer.trainable = val