class_docstr: Option Builder for Profiling API.
  
  For tutorial on the options, see
  https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler/g3doc/options.md
  
  ```python
  # Users can use pre-built options:
  opts = (
      tf.profiler.ProfileOptionBuilder.trainable_variables_parameter())
  
  # Or, build your own options:
  opts = (tf.compat.v1.profiler.ProfileOptionBuilder()
      .with_max_depth(10)
      .with_min_micros(1000)
      .select(['accelerator_micros'])
      .with_stdout_output()
      .build()
  
  # Or customize the pre-built options:
  opts = (tf.compat.v1.profiler.ProfileOptionBuilder(
      tf.profiler.ProfileOptionBuilder.time_and_memory())
      .with_displaying_options(show_name_regexes=['.*rnn.*'])
      .build())
  
  # Finally, profiling with the options:
  _ = tf.compat.v1.profiler.profile(tf.compat.v1.get_default_graph(),
                          run_meta=run_meta,
                          cmd='scope',
                          options=opts)
  ```
class_docstr_tok: ["Option","Builder","for","Profiling","API",".","For","tutorial","on","the","options",",","see","https",":","\/\/github.com\/tensorflow\/tensorflow\/tree\/master\/tensorflow\/core\/profiler\/g3doc\/options.md","``","`","python","#","Users","can","use","pre-built","options",":","opts","=","(","tf.profiler.ProfileOptionBuilder.trainable_variables_parameter","(",")",")","#","Or",",","build","your","own","options",":","opts","=","(","tf.compat.v1.profiler.ProfileOptionBuilder","(",")",".with_max_depth","(","10",")",".with_min_micros","(","1000",")",".select","(","[","'accelerator_micros","'","]",")",".with_stdout_output","(",")",".build","(",")","#","Or","customize","the","pre-built","options",":","opts","=","(","tf.compat.v1.profiler.ProfileOptionBuilder","(","tf.profiler.ProfileOptionBuilder.time_and_memory","(",")",")",".with_displaying_options","(","show_name_regexes=","[","'.","*","rnn",".","*","'","]",")",".build","(",")",")","#","Finally",",","profiling","with","the","options",":","_","=","tf.compat.v1.profiler.profile","(","tf.compat.v1.get_default_graph","(",")",",","run_meta=run_meta",",","cmd='scope","'",",","options=opts",")","``","`"]
docstr: Regular expressions used to select profiler nodes to display.
  
  After 'with_accounted_types' is evaluated, 'with_node_names' are
  evaluated as follows:
  
    For a profile data structure, profiler first finds the profiler
    nodes matching 'start_name_regexes', and starts displaying profiler
    nodes from there. Then, if a node matches 'show_name_regexes' and
    doesn't match 'hide_name_regexes', it's displayed. If a node matches
    'trim_name_regexes', profiler stops further searching that branch.
  
  Args:
    start_name_regexes: list of node name regexes to start displaying.
    show_name_regexes: list of node names regexes to display.
    hide_name_regexes: list of node_names regexes that should be hidden.
    trim_name_regexes: list of node name regexes from where to stop.
  Returns:
    self
docstr_tok: ["Regular","expressions","used","to","select","profiler","nodes","to","display",".","After","'with_accounted_types","'","is","evaluated",",","'with_node_names","'","are","evaluated","as","follows",":","For","a","profile","data","structure",",","profiler","first","finds","the","profiler","nodes","matching","'start_name_regexes","'",",","and","starts","displaying","profiler","nodes","from","there",".","Then",",","if","a","node","matches","'show_name_regexes","'","and","does","n't","match","'hide_name_regexes","'",",","it","'s","displayed",".","If","a","node","matches","'trim_name_regexes","'",",","profiler","stops","further","searching","that","branch",".","Args",":","start_name_regexes",":","list","of","node","name","regexes","to","start","displaying",".","show_name_regexes",":","list","of","node","names","regexes","to","display",".","hide_name_regexes",":","list","of","node_names","regexes","that","should","be","hidden",".","trim_name_regexes",":","list","of","node","name","regexes","from","where","to","stop",".","Returns",":","self"]
code: def with_node_names(
      self,
      start_name_regexes=None,
      show_name_regexes=None,
      hide_name_regexes=None,
      trim_name_regexes=None,
  ):
      """Regular expressions used to select profiler nodes to display.
  
      After 'with_accounted_types' is evaluated, 'with_node_names' are
      evaluated as follows:
  
        For a profile data structure, profiler first finds the profiler
        nodes matching 'start_name_regexes', and starts displaying profiler
        nodes from there. Then, if a node matches 'show_name_regexes' and
        doesn't match 'hide_name_regexes', it's displayed. If a node matches
        'trim_name_regexes', profiler stops further searching that branch.
  
      Args:
        start_name_regexes: list of node name regexes to start displaying.
        show_name_regexes: list of node names regexes to display.
        hide_name_regexes: list of node_names regexes that should be hidden.
        trim_name_regexes: list of node name regexes from where to stop.
      Returns:
        self
      """
      if start_name_regexes is not None:
          self._options["start_name_regexes"] = copy.copy(
              start_name_regexes
          )
      if show_name_regexes is not None:
          self._options["show_name_regexes"] = copy.copy(
              show_name_regexes
          )
      if hide_name_regexes is not None:
          self._options["hide_name_regexes"] = copy.copy(
              hide_name_regexes
          )
      if trim_name_regexes is not None:
          self._options["trim_name_regexes"] = copy.copy(
              trim_name_regexes
          )
      return self
  
imports: import copy
  from tensorflow.python.profiler import tfprof_logger
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 13 for calling the ProfileOptionBuilder obj's underlying member method code with example usage: obj.with_node_names(start_name_regexes, show_name_regexes, hide_name_regexes, trim_name_regexes) and returns: self