paddlenlp/experimental/model_utils.py
def save_resources(self, save_directory):
        """
        Save tokenizer related resources to `resource_files_names` indicating
        files under `save_directory` by copying directly. Override it if necessary.

        Args:
            save_directory (str): Directory to save files into.
        """
        for name, file_name in self.resource_files_names.items():
            src_path = self.init_config['init_args'][0].get(name, None)
            dst_path = os.path.join(save_directory, file_name)
            if src_path and os.path.abspath(src_path) != os.path.abspath(
                    dst_path):
                copyfile(src_path, dst_path)

        Save tokenizer related resources to `resource_files_names` indicating
        files under `save_directory` by copying directly. Override it if necessary.

        Args:
            save_directory (str): Directory to save files into.
        
Save tokenizer related resources to `resource_files_names` indicating
files under `save_directory` by copying directly. Override it if necessary.
Save tokenizer related resources to ` resource_files_names ` indicating files under ` save_directory ` by copying directly . Override it if necessary .
def save_resources(self, save_directory):
        for name, file_name in self.resource_files_names.items():
            src_path = self.init_config['init_args'][0].get(name, None)
            dst_path = os.path.join(save_directory, file_name)
            if src_path and os.path.abspath(src_path) != os.path.abspath(
                    dst_path):
                copyfile(src_path, dst_path)
def save_resources ( self , save_directory ) : for name , file_name in self . resource_files_names . items ( ) : src_path = self . init_config [ 'init_args' ] [ 0 ] . get ( name , None ) dst_path = os . path . join ( save_directory , file_name ) if src_path and os . path . abspath ( src_path ) != os . path . abspath ( dst_path ) : copyfile ( src_path , dst_path )
Save tokenizer related resources to `resource_files_names` indicating
files under `save_directory` by copying directly.
Save tokenizer related resources to ` resource_files_names ` indicating files under ` save_directory ` by copying directly .
"""
        Save tokenizer related resources to `resource_files_names` indicating
        files under `save_directory` by copying directly. Override it if necessary.

        Args:
            save_directory (str): Directory to save files into.
        """
self
save_directory
Directory to save files into.
Directory to save files into .