Evaluates a placeholder expression using the given context.
tfx.dsl.compiler.placeholder_utils.resolve_placeholder_expression(
expression: placeholder_pb2.PlaceholderExpression,
context: tfx.dsl.compiler.placeholder_utils.ResolutionContext
) -> _PlaceholderResolvedTypeHints
Normally the resolved value will be used as command line flags in strings.
This function does not automatically perform the string conversion, i.e.,
the return type is the same as the type of the value originally has. Currently
it can be
exec property supported primitive types: int, float, string.
if use proto operator: serilaized proto message, or proto primitive fields.
The caller needs to perform desired string conversions.
Args |
expression
|
A placeholder expression to be resolved.
|
context
|
Information needed to resolve the expression.
|
Returns |
Resolved expression value.
|