How to patch a multi-run downstream operation, for example tensorboard:multi-run #1502
Answered
by
polyaxon-team
polyaxon-team
asked this question in
Q&A
-
Hi, simple Q. I want to launch a tensorboard with the tensorboard profiler pip installed from the GUI. At the moment I am using this: version: 1.1
kind: operation
hubRef: tensorboard:multi-run
joins:
- query: "uuid: XX"
params:
uuids: {value: "globals.uuid"} However I want to runPatch it so that it installs: pip install -U tensorboard-plugin-profile Is there a way to easily do this? |
Beta Was this translation helpful? Give feedback.
Answered by
polyaxon-team
May 5, 2022
Replies: 1 comment
-
You can add the following ...
patchStrategy: replace
runPatch:
container:
command: ["bash", "-c"]
args:
- "pip install -U tensorboard-plugin-profile && tensorboard --logdir={{globals.artifacts_path}} --port={{globals.ports[0]}} --path_prefix={{globals.base_url}} --host=0.0.0.0" For the specific case of tensorboard, we will add a new input params:
plugins: { value: [tensorboard-plugin-profile, tensorboard-plugin-custom, ...] } |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
polyaxon-team
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add the following
runPatch
:For the specific case of tensorboard, we will add a new input
plugins
of typeList[str]
to the tensorboard component versions , so instead of patching the component, users can pass a parameter: