张磊

Results 11 comments of 张磊

我想知道这个库的代码如何运行 我为什么引用库引用不了

解决了问题 for d in data: if task == "sst2" or task == "cola": content = d['sentence'] elif task == 'qqp': content = 'Question 1: ' + \ d['question1'] + '...

class GLUE(Dataset): def __init__(self, task, local_path=None): self.data = [] self.supported_tasks = ["sst2", "cola", "qqp", "mnli", "mnli_matched", "mnli_mismatched", "qnli", "wnli", "rte", "mrpc"] assert task in self.supported_tasks self.task = task if local_path:...

```python def __init__(self, local_path=None): print(local_path) self.data = [] self.tasks = ['high_school_european_history', 'business_ethics', 'clinical_knowledge', 'medical_genetics', 'high_school_us_history', 'high_school_physics', 'high_school_world_history', 'virology', 'high_school_microeconomics', 'econometrics', 'college_computer_science', 'high_school_biology', 'abstract_algebra', 'professional_accounting', 'philosophy', 'professional_medicine', 'nutrition', 'global_facts', 'machine_learning', 'security_studies',...

> May I ask if you have succeeded? Reproduction or testing? [@cxchen100](https://github.com/cxchen100) [@zl-comment](https://github.com/zl-comment) [@YJiangcm](https://github.com/YJiangcm) no I didn't succeed

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select) why?

什么?项目不维护了?连问题也不回答了?