ALIYUN::PAIDLC::Tensorboard

ALIYUN::PAIDLC::Tensorboard类型用于创建一个Tensorboard。

语法

{
  "Type": "ALIYUN::PAIDLC::Tensorboard",
  "Properties": {
    "MaxRunningTimeMinutes": Integer,
    "Options": String,
    "Memory": Integer,
    "SummaryPath": String,
    "SourceId": String,
    "SourceType": String,
    "WorkspaceId": String,
    "Cpu": Integer,
    "Uri": String,
    "DataSources": List,
    "SummaryRelativePath": String,
    "DataSourceType": String,
    "DisplayName": String,
    "JobId": String,
    "DataSourceId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

MaxRunningTimeMinutes

Integer

最长运行时长。

单位:分钟。

Options

String

数据集的扩展字段为JSON格式。

取值:MountPath,自定义数据集挂载的路径。例如:

{"mountpath":"/root/data/"}

Memory

Integer

内存大小。

单位:GB。

SummaryPath

String

Summary目录。

SourceId

String

来源ID。

SourceType

String

来源类型。

示例:job。

WorkspaceId

String

工作空间ID。

如何获取工作空间ID,请参见ListWorkspaces - 获取工作空间列表

Cpu

Integer

CPU核数。

Uri

String

数据集的URI。

取值:

  • 当DataSourceType为OSS时,格式为:oss://[oss-bucket].[endpoint]/[path]

  • 当DataSourceType为NAS时,格式为:nas://[nas-filesystem-id].[region]/[path]

DataSources

List

数据源配置。

SummaryRelativePath

String

Summary相对目录。

DataSourceType

String

数据集类型。

取值:

  • OSS

  • NAS

DisplayName

String

Tensorboard名称。

JobId

String

任务ID。

如何获取任务ID,请参见ListJobs - 获取任务列表

DataSourceId

String

数据集ID。

如何获取数据集ID,请参见ListDatasets - 获取数据集列表

返回值

Fn::GetAtt

  • TensorboardId:Tensorboard ID。

  • TensorboardUrl:Tensorboard URL

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Cpu:
        Description: CPU nuclear number.
        Type: Number
      DataSourceId:
        Description: For dataset ID, see the data set ID, see ListDataSets.
        Type: String
      DataSourceType:
        AllowedValues:
        - OSS
        - NAS
        Description: 'The type of dataset. Values: OSS,NAS'
        Type: String
      DataSources:
        Description: Data source configuration.
        Type: CommaDelimitedList
      DisplayName:
        Description: Tensorboard name.
        Type: String
      JobId:
        Description: Task ID.How to get the task ID, see Listjobs.
        Type: String
      MaxRunningTimeMinutes:
        Description: 'The longest running time, the unit is: minutes.'
        Type: Number
      Memory:
        Description: 'Memory size, the unit is: GB.'
        Type: Number
      Options:
        Description: 'The expansion field of the dataset is JSON format, which currently
          supports Mountpath: the path of custom dataset mounting.'
        Type: String
      SourceId:
        Description: Source ID.
        Type: String
      SourceType:
        Description: Source type.
        Type: String
      SummaryPath:
        Description: Summary directory.
        Type: String
      SummaryRelativePath:
        Description: Summary relative directory. Summary relative directory and Summary
          directory are mutually exclusive
        Type: String
      Uri:
        Description: 'URI of a dataset:
    
          When DataSourceType is OSS, the format is: OSS: // [OSS-BUCET]. [Endpoint]/[Path].
    
          When the DataSourceType is NAS, the format is: nas:// [nas-filesystem-id]. [Region]/[PATH].'
        Type: String
      WorkspaceId:
        Description: Work space ID.How to get working space ID, see ListworkSpaces.
        Type: String
    Resources:
      Tensorboard:
        Properties:
          Cpu:
            Ref: Cpu
          DataSourceId:
            Ref: DataSourceId
          DataSourceType:
            Ref: DataSourceType
          DataSources:
            Ref: DataSources
          DisplayName:
            Ref: DisplayName
          JobId:
            Ref: JobId
          MaxRunningTimeMinutes:
            Ref: MaxRunningTimeMinutes
          Memory:
            Ref: Memory
          Options:
            Ref: Options
          SourceId:
            Ref: SourceId
          SourceType:
            Ref: SourceType
          SummaryPath:
            Ref: SummaryPath
          SummaryRelativePath:
            Ref: SummaryRelativePath
          Uri:
            Ref: Uri
          WorkspaceId:
            Ref: WorkspaceId
        Type: ALIYUN::PAIDLC::Tensorboard
    Outputs:
      TensorboardId:
        Description: Tensorboard id.
        Value:
          Fn::GetAtt:
          - Tensorboard
          - TensorboardId
      TensorboardUrl:
        Description: Tensorboard url.
        Value:
          Fn::GetAtt:
          - Tensorboard
          - TensorboardUrl
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "MaxRunningTimeMinutes": {
          "Type": "Number",
          "Description": "The longest running time, the unit is: minutes."
        },
        "Options": {
          "Type": "String",
          "Description": "The expansion field of the dataset is JSON format, which currently supports Mountpath: the path of custom dataset mounting."
        },
        "Memory": {
          "Type": "Number",
          "Description": "Memory size, the unit is: GB."
        },
        "SummaryPath": {
          "Type": "String",
          "Description": "Summary directory."
        },
        "SourceId": {
          "Type": "String",
          "Description": "Source ID."
        },
        "SourceType": {
          "Type": "String",
          "Description": "Source type."
        },
        "WorkspaceId": {
          "Type": "String",
          "Description": "Work space ID.How to get working space ID, see ListworkSpaces."
        },
        "Cpu": {
          "Type": "Number",
          "Description": "CPU nuclear number."
        },
        "Uri": {
          "Type": "String",
          "Description": "URI of a dataset:\nWhen DataSourceType is OSS, the format is: OSS: // [OSS-BUCET]. [Endpoint]/[Path].\nWhen the DataSourceType is NAS, the format is: nas:// [nas-filesystem-id]. [Region]/[PATH]."
        },
        "DataSources": {
          "Type": "CommaDelimitedList",
          "Description": "Data source configuration."
        },
        "SummaryRelativePath": {
          "Type": "String",
          "Description": "Summary relative directory. Summary relative directory and Summary directory are mutually exclusive"
        },
        "DataSourceType": {
          "Type": "String",
          "Description": "The type of dataset. Values: OSS,NAS",
          "AllowedValues": [
            "OSS",
            "NAS"
          ]
        },
        "DisplayName": {
          "Type": "String",
          "Description": "Tensorboard name."
        },
        "JobId": {
          "Type": "String",
          "Description": "Task ID.How to get the task ID, see Listjobs."
        },
        "DataSourceId": {
          "Type": "String",
          "Description": "For dataset ID, see the data set ID, see ListDataSets."
        }
      },
      "Resources": {
        "Tensorboard": {
          "Type": "ALIYUN::PAIDLC::Tensorboard",
          "Properties": {
            "MaxRunningTimeMinutes": {
              "Ref": "MaxRunningTimeMinutes"
            },
            "Options": {
              "Ref": "Options"
            },
            "Memory": {
              "Ref": "Memory"
            },
            "SummaryPath": {
              "Ref": "SummaryPath"
            },
            "SourceId": {
              "Ref": "SourceId"
            },
            "SourceType": {
              "Ref": "SourceType"
            },
            "WorkspaceId": {
              "Ref": "WorkspaceId"
            },
            "Cpu": {
              "Ref": "Cpu"
            },
            "Uri": {
              "Ref": "Uri"
            },
            "DataSources": {
              "Ref": "DataSources"
            },
            "SummaryRelativePath": {
              "Ref": "SummaryRelativePath"
            },
            "DataSourceType": {
              "Ref": "DataSourceType"
            },
            "DisplayName": {
              "Ref": "DisplayName"
            },
            "JobId": {
              "Ref": "JobId"
            },
            "DataSourceId": {
              "Ref": "DataSourceId"
            }
          }
        }
      },
      "Outputs": {
        "TensorboardId": {
          "Description": "Tensorboard id.",
          "Value": {
            "Fn::GetAtt": [
              "Tensorboard",
              "TensorboardId"
            ]
          }
        },
        "TensorboardUrl": {
          "Description": "Tensorboard url.",
          "Value": {
            "Fn::GetAtt": [
              "Tensorboard",
              "TensorboardUrl"
            ]
          }
        }
      }
    }