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.component_spec.ChannelParameter

View source on GitHub

Class ChannelParameter

An channel parameter that forms part of a ComponentSpec.

This type of parameter should be specified in the INPUTS and OUTPUTS dict fields of a ComponentSpec:

class MyCustomComponentSpec(ComponentSpec): # ... INPUTS = { 'input_examples': ChannelParameter(type=standard_artifacts.Examples), } OUTPUTS = { 'output_examples': ChannelParameter(type=standard_artifacts.Examples), } # ...

__init__

View source

__init__(
    type_name=None,
    type=None,
    optional=False
)

Initialize self. See help(type(self)) for accurate signature.

Methods

type_check

View source

type_check(
    arg_name,
    value
)