Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfx.types.Channel

View source on GitHub

Tfx Channel.

tfx.types.Channel(
    type=None, artifacts=None, producer_component_id=None, output_key=None
)

Used in the notebooks

Used in the tutorials

TFX Channel is an abstract concept that connects data producers and data consumers. It contains restriction of the artifact type that should be fed into or read from it.

Args:

  • type: Subclass of Artifact that represents the type of this Channel.
  • artifacts: (Optional) A collection of artifacts as the values that can be read from the Channel. This is used to construct a static Channel.
  • producer_component_id: (Optional) Producer component id of the Channel.
  • output_key: (Optional) The output key when producer component produces the artifacts in this Channel.

Attributes:

  • type: The artifact type class that the Channel takes.* type_name

Methods

from_json_dict

View source

@classmethod
from_json_dict(
    cls, dict_data
)

Convert from dictionary data to an object.

get

View source

get()

Returns all artifacts that can be get from this Channel.

Returns:

An artifact collection.

to_json_dict

View source

to_json_dict()

Convert from an object to a JSON serializable dictionary.