@classmethod<EOL><INDENT>def clean_weight_files(cls):<DEDENT>
deleted = []<EOL>for f in cls._files:<EOL><INDENT>try:<EOL><INDENT>os.remove(f)<EOL>deleted.append(f)<EOL><DEDENT>except FileNotFoundError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>print('<STR_LIT>' % len(deleted))<EOL>cls._files = []<EOL>
Cleans existing weight files.