class_docstr: TFX example gen executor for processing avro format.
  
  Data type conversion:
    integer types will be converted to tf.train.Feature with tf.train.Int64List.
    float types will be converted to tf.train.Feature with tf.train.FloatList.
    string types will be converted to tf.train.Feature with tf.train.BytesList
      and utf-8 encoding.
  
    Note that,
      Single value will be converted to a list of that single value.
      Missing value will be converted to empty tf.train.Feature().
  
    For details, check the dict_to_example function in example_gen.utils.
  
  
  Example usage:
  
    from tfx.components.base import executor_spec
    from tfx.components.example_gen.component import
    FileBasedExampleGen
    from tfx.components.example_gen.custom_executors import
    avro_executor
  
    example_gen = FileBasedExampleGen(
        input_base=avro_dir_path,
        custom_executor_spec=executor_spec.ExecutorClassSpec(
            avro_executor.Executor))
class_docstr_tok: ["TFX","example","gen","executor","for","processing","avro","format",".","Data","type","conversion",":","integer","types","will","be","converted","to","tf.train.Feature","with","tf.train.Int64List",".","float","types","will","be","converted","to","tf.train.Feature","with","tf.train.FloatList",".","string","types","will","be","converted","to","tf.train.Feature","with","tf.train.BytesList","and","utf-8","encoding",".","Note","that",",","Single","value","will","be","converted","to","a","list","of","that","single","value",".","Missing","value","will","be","converted","to","empty","tf.train.Feature","(",")",".","For","details",",","check","the","dict_to_example","function","in","example_gen.utils",".","Example","usage",":","from","tfx.components.base","import","executor_spec","from","tfx.components.example_gen.component","import","FileBasedExampleGen","from","tfx.components.example_gen.custom_executors","import","avro_executor","example_gen","=","FileBasedExampleGen","(","input_base=avro_dir_path",",","custom_executor_spec=executor_spec.ExecutorClassSpec","(","avro_executor.Executor",")",")"]
docstr: Returns PTransform for avro to TF examples.
docstr_tok: ["Returns","PTransform","for","avro","to","TF","examples","."]
code: def GetInputSourceToExamplePTransform(self) -> beam.PTransform:
      """Returns PTransform for avro to TF examples."""
      return _AvroToExample
  
file_path: tfx/tfx/components/example_gen/custom_executors/avro_executor.py
imports: import os
  from typing import Any, Dict
  from absl import logging
  import apache_beam
  import tensorflow
  from tfx.components.example_gen import utils
  from tfx.components.example_gen.base_example_gen_executor import BaseExampleGenExecutor
  from tfx.types import standard_component_specs
label_desc: Use image node_id 1 for calling the Executor obj's underlying member method code with example usage: obj.GetInputSourceToExamplePTransform() and returns: _AvroToExample