class_docstr: NNOp to triton model.
class_docstr_tok: ["NNOp","to","triton","model","."]
docstr: save model in triton and return the status.
  0 means do nothing, -1 means failed, 1 means successfully created the model repo.
docstr_tok: ["save","model","in","triton","and","return","the","status",".","0","means","do","nothing",",","-1","means","failed",",","1","means","successfully","created","the","model","repo","."]
code: def to_triton(self) -> int:
      """
      save model in triton and return the status.
      0 means do nothing, -1 means failed, 1 means successfully created the model repo.
      """
      if not set(self._model_format_priority) & set(
          self._op.supported_formats
      ):
          return 0
      if not self._create_model_dir():
          return -1
      return self._prepare_model()
  
file_path: towhee/towhee/serve/triton/model_to_triton.py
imports: import traceback
  from towhee.utils.log import engine_log
  from towhee.utils.onnx_utils import onnx
  from towhee.serve.triton import constant
  from towhee.serve.triton.triton_config_builder import create_modelconfig
  from towhee.serve.triton.triton_files import TritonFiles
label_desc: Use image node_id 7 for calling the ModelToTriton obj's underlying member method code with example usage: obj.to_triton() and returns: self, int, unknown