def __init__(self,
                 all_input_ids,
                 all_attention_mask,
                 all_token_type_ids,
                 all_xpath_tags_seq,
                 all_xpath_subs_seq,
                 all_labels=None,
                 ):
        '''
        print(type(all_input_ids))
        print(type(all_attention_mask))
        print(type(all_token_type_ids))
        print(type(all_xpath_tags_seq))
        print(type(all_xpath_subs_seq))
        print(type(all_labels))
        raise ValueError
        '''
        self.tensors = [all_input_ids, all_attention_mask, all_token_type_ids,
                        all_xpath_tags_seq, all_xpath_subs_seq]

        if not all_labels is None:
            self.tensors.append(all_labels)

        print(type(all_input_ids))
        print(type(all_attention_mask))
        print(type(all_token_type_ids))
        print(type(all_xpath_tags_seq))
        print(type(all_xpath_subs_seq))
        print(type(all_labels))
        raise ValueError
        
markuplm/examples/fine_tuning/run_swde/utils.py