实用程序¶
开箱即用的实用程序组件。这些是
仅执行众所周知的二进制文件(例如 )
,并用作教程材料或之间的粘合作
工作流中有意义的阶段。/bin/cp
- torchx.components.utils 中。echo(msg: str = 'hello world', image: str = 'ghcr.io/pytorch/torchx:0.1.0rc0', num_replicas: int = 1) → torchx.specs.api.AppDef[来源]¶
将消息回显到 stdout(调用 /bin/echo)
- 参数
msg – 消息回声
image – 要使用的图像
num_replicas – 要运行的副本数
- torchx.components.utils 中。touch(文件: str, image: str = 'ghcr.io/pytorch/torchx:0.1.0rc0') → torchx.specs.api.AppDef[来源]¶
触摸文件(调用 touch)
- 参数
file (文件) – 要创建的文件
image – 要使用的镜像