task#

class Task(model, task, priority_path=None, **kwargs)[源代码]#

基类:object

The meta classs of task in Taskflow. The meta class has the five abstract function,

the subclass need to inherit from the meta class.

参数:
  • task (string) -- The name of task.

  • model (string) -- The model name in the task.

  • kwargs (dict, optional) -- Additional keyword arguments passed along to the specific task.

paddle_quantize_model(model_path)[源代码]#

Determine whether it is an int8 model.

help()[源代码]#

Return the usage message of the current task.