Strategy that resolves the latest n(=1) artifacts per each channel.
tfx.v1.dsl.experimental.LatestArtifactStrategy( desired_num_of_artifacts: Optional[int] = 1 )
Note that this ResolverStrategy is experimental and is subject to change in terms of both interface and implementation.
Don't construct LatestArtifactStrategy directly, example usage:
model_resolver = Resolver( strategy_class=LatestArtifactStrategy, model=Channel(type=Model), ).with_id('latest_model_resolver') model_resolver.outputs['model']
as_resolver_op( input_node: resolver_op.OpNode, **kwargs )
ResolverOp-like usage inside resolver_function.