pyspark/bigdl/keras/converter.py
def load_weights_from_json_hdf5(def_json, weights_hdf5, by_name=False):
        """
        The file path can be stored in a local file system, HDFS, S3,
        or any Hadoop-supported file system.
        """
        bmodel = DefinitionLoader.from_json_path(def_json)
        def_value = BCommon.text_from_path(def_json)
        kmodel = model_from_json(def_value)
        WeightLoader.load_weights_from_hdf5(bmodel, kmodel, weights_hdf5, by_name)
        return bmodel
def load_weights_from_json_hdf5(def_json, weights_hdf5, by_name=False):
        bmodel = DefinitionLoader.from_json_path(def_json)
        def_value = BCommon.text_from_path(def_json)
        kmodel = model_from_json(def_value)
        WeightLoader.load_weights_from_hdf5(bmodel, kmodel, weights_hdf5, by_name)
        return bmodel
def load_weights_from_json_hdf5 ( def_json , weights_hdf5 , by_name = False ) : bmodel = DefinitionLoader . from_json_path ( def_json ) def_value = BCommon . text_from_path ( def_json ) kmodel = model_from_json ( def_value ) WeightLoader . load_weights_from_hdf5 ( bmodel , kmodel , weights_hdf5 , by_name ) return bmodel
The file path can be stored in a local file system, HDFS, S3,
        or any Hadoop-supported file system.
The file path can be stored in a local file system HDFS S3 or any Hadoop - supported file system .