Source code for cogdl.tasks.base_task
import torch
import torch.nn as nn
[docs]class BaseTask(object):
@staticmethod
# @classmethod
# def build_task_from_args(cls, args):
# """Build a new task instance."""
# raise NotImplementedError(
# "Tasks must implement the build_task_from_args method"
# )
def __init__(self, args):
pass