tfx.dsl.resolvers.base_resolver.BaseResolver

Base class for resolver.

Resolver is the logical unit that will be used optionally for input selection. A resolver subclass must override the resolve_artifacts() function which takes a dict of > as parameters and return the resolved dict.

Methods

resolve

View source

Resolves artifacts from channels by querying MLMD. (deprecated)

Args
pipeline_info PipelineInfo of the current pipeline. We do not want to query artifacts across pipeline boundary.
metadata_handler a read-only handler to query MLMD.
source_channels a key -> channel dict which contains the info of the source channels.

Returns
a ResolveResult instance.

Raises
DeprecationWarning when it is called.

resolve_artifacts

View source

Resolves artifacts from channels by querying MLMD.

Args
metadata_handler A metadata handler to access MLMD store.
input_dict The input_dict to resolve from.

Returns
If all entries has enough data after the resolving, returns the resolved input_dict. Otherise, return None.