def compare_files(self, result_file, ref_file):
 self.assertEqual(result_file.src, ref_file.src)
 self.assertEqual(result_file.dest, ref_file.dest)
 self.assertEqual(result_file.compare_key, ref_file.compare_key)
 self.assertEqual(result_file.size, ref_file.size)
 self.assertEqual(result_file.last_update, ref_file.last_update)
 self.assertEqual(result_file.src_type, ref_file.src_type)
 self.assertEqual(result_file.dest_type, ref_file.dest_type)
 self.assertEqual(result_file.operation_name, ref_file.operation_name)

def compare_files ( self , result_file , ref_file ) : self . assertEqual ( result_file . src , ref_file . src ) self . assertEqual ( result_file . dest , ref_file . dest ) self . assertEqual ( result_file . compare_key , ref_file . compare_key ) self . assertEqual ( result_file . size , ref_file . size ) self . assertEqual ( result_file . last_update , ref_file . last_update ) self . assertEqual ( result_file . src_type , ref_file . src_type ) self . assertEqual ( result_file . dest_type , ref_file . dest_type ) self . assertEqual ( result_file . operation_name , ref_file . operation_name )
helper function to compare two serialized model files this is only comparing the model weights and states and layer config parameters returns: bool: true if the two file match .