def METHOD_NAME(frozen_model):
    import tensorflow as tf
    from tensorflow.python.framework import tensor_util
    weights = {}
    with tf.Session() as sess:
        with tf.gfile.GFile(frozen_model, 'rb') as f:
            graph_def = tf.GraphDef()
            graph_def.ParseFromString(f.read())
            tf.import_graph_def(graph_def)
        for n in graph_def.node:
            if n.op == 'Const':
                weights[n.name] = tensor_util.MakeNdarray(n.attr['value'].tensor)
    return weights