TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfx.types.Channel

View source on GitHub

Class Channel

Tfx Channel.

Aliases:

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.

Attributes:

  • type_name: A string representing the artifact type the Channel takes.

__init__

View source

__init__(
    type_name=None,
    type=None,
    artifacts=None
)

Initialization of Channel.

Args:

  • type_name: Name of the type that should be fed into or read from the Channel. If not specified, "type" must be specified instead.
  • type: Subclass of Artifact that represents the type of the Channel. If not specified, "type_name" must be specified instead.
  • artifacts: (Optional) A collection of artifacts as the values that can be read from the Channel. This is used to construct a static Channel.

Methods

get

View source

get()

Returns all artifacts that can be get from this Channel.

Returns:

An artifact collection.