how to get string as true value of tfx.orchestration.data_types.RuntimeParameter
during execution pipeline?
Hi,
I'm defining a runtime parameter like data_root = tfx.orchestration.data_types.RuntimeParameter(name='data-root', ptype=str)
for a base path, from which I define many subfolders for various components like str(data_root)+'/model'
for model serving path in tfx.components.Pusher()
.
It was working like a charm before I moved to tfx==1.12.0
: str(data_root)
is now providing a json dump.
To overcome that, i tried to define a runtime parameter for model path like model_root = tfx.orchestration.data_types.RuntimeParameter(name='model-root', ptype=str)
and then feed the Pusher
component the way I saw in many tutotrials:
pusher = Pusher(model=trainer.outputs['model'],
model_blessing=evaluator.outputs['blessing'],
push_destination=tfx.proto.PushDestination(
filesystem=tfx.proto.PushDestination.Filesystem(base_directory=model_root)))
but I get a TypeError
saying tfx.proto.PushDestination.Filesystem
does not accept Runtime
parameter.
It completely breaks the existing setup as i received those parameters from external client for each kubeflow run.
Thanks a lot for any help.