flytekitplugins.onnxpytorch.PyTorch2ONNX#
- class flytekitplugins.onnxpytorch.PyTorch2ONNX(model: 'Union[torch.nn.Module, torch.jit.ScriptModule, torch.jit.ScriptFunction]' = None)[source]#
Methods
- Parameters:
model (Module | ScriptModule | ScriptFunction)
- classmethod from_dict(kvs, *, infer_missing=False)#
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)#
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)#
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)#
Attributes
- dataclass_json_config = None
- model: Module | ScriptModule | ScriptFunction = None