tfx.v1.testing.Channel

Dummy channel for testing.

Inherits From: BaseChannel

is_optional If this is an "optional" channel. Changes Pipeline runtime behavior.
type

type_name Name of the artifact type class that Channel takes.

Methods

as_optional

Creates an optional version of self.

By default component input channels are considered required, meaning if the channel does not contain at least 1 artifact, the component will be skipped. Making channel optional disables this requirement and allows componenst to be executed with no artifacts from this channel.

Returns
A copy of self which is optional.

future

get_data_dependent_node_ids

Get data dependent nodes of this channel.

Currently only the OutputChannel directly imposes the data dependency, but other channels can also indirectly have a data dependency if they depend on the OutputChannel. Use this abstract method to define transitive data dependency.

Returns
A set of data-dependent node IDs.

__eq__

Return self==value.