class_docstr: Mixin class for SchemaBuilder that holds Triton specific methods
docstr: Map sample_input and sample_output data type to Triton data type
docstr_tok: ["Map","sample_input","and","sample_output","data","type","to","Triton","data","type"]
code: def _detect_dtype_for_triton(self):
      """Map sample_input and sample_output data type to Triton data type"""
      # detect for input
      if self._input_class_name == TORCH_TENSOR:
          self._input_triton_dtype = (
              self._detect_dtype_for_pytorch_tensor(
                  data=self.sample_input
              )
          )
      elif self._input_class_name == NUMPY_ARRAY:
          self._input_triton_dtype = self._detect_dtype_for_numpy(
              data=self.sample_input
          )
      elif self._input_class_name == TF_TENSOR:
          self._input_triton_dtype = self._detect_dtype_for_tensorflow(
              data=self.sample_input
          )
      else:
          self._input_triton_dtype = DEFAULT_DTYPE
  
      # detect for output
      if self._output_class_name == TORCH_TENSOR:
          self._output_triton_dtype = (
              self._detect_dtype_for_pytorch_tensor(
                  data=self.sample_output
              )
          )
      elif self._output_class_name == NUMPY_ARRAY:
          self._output_triton_dtype = self._detect_dtype_for_numpy(
              data=self.sample_output
          )
      elif self._output_class_name == TF_TENSOR:
          self._output_triton_dtype = self._detect_dtype_for_tensorflow(
              data=self.sample_output
          )
      else:
          self._output_triton_dtype = DEFAULT_DTYPE
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/builder/triton_schema_builder.py
imports: from __future__ import absolute_import
  from sagemaker.serve.marshalling.triton_translator import TorchTensorTranslator, TensorflowTensorTranslator, NumpyTranslator, ListTranslator
label_desc: Use image node_id 4 for calling the TritonSchemaBuilder obj's underlying member method code with example usage: obj._detect_dtype_for_triton() without return types