class_docstr: A pipeline that contains graph passes.
  
  Create a default pipeline (with all default graph passes that will operate on the program):
  
  .. sourcecode:: python
  
      pipeline = ct.PassPipeline.DEFAULT
  
  Create an empty pipeline (this will result in no graph passes being applied to the model):
  
  .. sourcecode:: python
  
      pipeline = ct.PassPipeline.EMPTY
  
  Add passes to pipeline:
  
  .. sourcecode:: python
  
      pipeline = ct.PassPipeline.DEFAULT
      pipeline.append_pass("common::reduce_transposes")
      pipeline.insert_pass(index=0, pass_name="common::reduce_transposes")
      # Can also specify all passes by setting the passes of the pipeline.
      pipeline.passes = ["common::reduce_transposes", "common::add_fp16_cast"]
  
  Remove passes:
  
  .. sourcecode:: python
  
      # Remove a pass at a specific index.
      pipeline.remove_pass(index=10)
      # Remove passes by names.
      pipeline.remove_passes({"common::add_fp16_cast", "common::reduce_transposes"})
  
  Inspect passes in the pipeline:
  
  .. sourcecode:: python
  
      # Get all passes.
      pass_names = pipeline.passes
      # Find indexes of a specific pass.
      pass_indexes = [
          idx
          for idx, pass_name in enumerate(pass_names)
          if pass_names[idx] == "common::reduce_transposes"
      ]
  
  Set options for a specific pass:
  
  .. sourcecode:: python
  
      pipeline = ct.PassPipeline.DEFAULT
      pipeline.set_options(
          pass_name="common::const_elimination",
          options={"skip_const_by_size": "100000"},
      )
class_docstr_tok: ["A","pipeline","that","contains","graph","passes",".","Create","a","default","pipeline","(","with","all","default","graph","passes","that","will","operate","on","the","program",")",":","..","sourcecode",":",":","python","pipeline","=","ct.PassPipeline.DEFAULT","Create","an","empty","pipeline","(","this","will","result","in","no","graph","passes","being","applied","to","the","model",")",":","..","sourcecode",":",":","python","pipeline","=","ct.PassPipeline.EMPTY","Add","passes","to","pipeline",":","..","sourcecode",":",":","python","pipeline","=","ct.PassPipeline.DEFAULT","pipeline.append_pass","(","``","common",":",":reduce_transposes","''",")","pipeline.insert_pass","(","index=0",",","pass_name=","''","common",":",":reduce_transposes","''",")","#","Can","also","specify","all","passes","by","setting","the","passes","of","the","pipeline",".","pipeline.passes","=","[","``","common",":",":reduce_transposes","''",",","``","common",":",":add_fp16_cast","''","]","Remove","passes",":","..","sourcecode",":",":","python","#","Remove","a","pass","at","a","specific","index",".","pipeline.remove_pass","(","index=10",")","#","Remove","passes","by","names",".","pipeline.remove_passes","(","{","``","common",":",":add_fp16_cast","''",",","``","common",":",":reduce_transposes","''","}",")","Inspect","passes","in","the","pipeline",":","..","sourcecode",":",":","python","#","Get","all","passes",".","pass_names","=","pipeline.passes","#","Find","indexes","of","a","specific","pass",".","pass_indexes","=","[","idx","for","idx",",","pass_name","in","enumerate","(","pass_names",")","if","pass_names","[","idx","]","==","``","common",":",":reduce_transposes","''","]","Set","options","for","a","specific","pass",":","..","sourcecode",":",":","python","pipeline","=","ct.PassPipeline.DEFAULT","pipeline.set_options","(","pass_name=","''","common",":",":const_elimination","''",",","options=","{","``","skip_const_by_size","''",":","``","100000","''","}",",",")"]
code: def pipeline_name(self, pipeline_name: Text):
      self._pipeline_name = pipeline_name
  
imports: from __future__ import annotations
  from typing import Dict, List, Optional, Set, Text, Union
  from tqdm import tqdm
  from coremltools import _logger
  from coremltools.converters._profile_utils import _profile
  from coremltools.converters.mil import Program
  from coremltools.converters.mil.mil.passes.graph_pass import PassOption
  from coremltools.converters.mil.mil.passes.helper import classproperty
  from coremltools.converters.mil.mil.passes.pass_registry import PASS_REGISTRY
label_desc: Use image node_id 6 for calling the PassPipeline obj's underlying member method code with example usage: obj.pipeline_name(pipeline_name) without return types