Registration is open for TensorFlow Dev Summit 2020 Learn more

tfx.types.Channel

View source on GitHub

Class Channel

Tfx Channel.

Aliases: tfx.types.channel.Channel

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

from_json_dict

View source

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.