lib/v20211111/models.rb in tencentcloud-sdk-tione-3.0.801 vs lib/v20211111/models.rb in tencentcloud-sdk-tione-3.0.802
- old
+ new
@@ -1842,11 +1842,11 @@
# @type Tags: Array
# @param ImageInfo: 自定义镜像信息
# @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
# @param CodePackagePath: COS代码包路径
# @type CodePackagePath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
- # @param StartCmdInfo: 启动命令信息,默认为sh start.sh
+ # @param StartCmdInfo: 任务的启动命令,按任务训练模式输入,如遇特殊字符导致配置失败,可使用EncodedStartCmdInfo参数
# @type StartCmdInfo: :class:`Tencentcloud::Tione.v20211111.models.StartCmdInfo`
# @param TrainingMode: 训练模式,通过DescribeTrainingFrameworks接口查询,eg:PS_WORKER、DDP、MPI、HOROVOD
# @type TrainingMode: String
# @param DataConfigs: 数据配置,依赖DataSource字段,数量不超过10个
# @type DataConfigs: Array
@@ -1868,14 +1868,16 @@
# @type DataSource: String
# @param CallbackUrl: 回调地址,用于创建/启动/停止训练任务的异步回调。回调格式&内容详见:[[TI-ONE接口回调说明]](https://cloud.tencent.com/document/product/851/84292)
# @type CallbackUrl: String
# @param PreTrainModel: 太极预训练模型ID
# @type PreTrainModel: :class:`Tencentcloud::Tione.v20211111.models.PreTrainModel`
+ # @param EncodedStartCmdInfo: 编码后的任务启动命令,与StartCmdInfo同时配置时,仅当前参数生效
+ # @type EncodedStartCmdInfo: :class:`Tencentcloud::Tione.v20211111.models.EncodedStartCmdInfo`
- attr_accessor :Name, :ChargeType, :ResourceConfigInfos, :FrameworkName, :FrameworkVersion, :FrameworkEnvironment, :ResourceGroupId, :Tags, :ImageInfo, :CodePackagePath, :StartCmdInfo, :TrainingMode, :DataConfigs, :VpcId, :SubnetId, :Output, :LogConfig, :TuningParameters, :LogEnable, :Remark, :DataSource, :CallbackUrl, :PreTrainModel
+ attr_accessor :Name, :ChargeType, :ResourceConfigInfos, :FrameworkName, :FrameworkVersion, :FrameworkEnvironment, :ResourceGroupId, :Tags, :ImageInfo, :CodePackagePath, :StartCmdInfo, :TrainingMode, :DataConfigs, :VpcId, :SubnetId, :Output, :LogConfig, :TuningParameters, :LogEnable, :Remark, :DataSource, :CallbackUrl, :PreTrainModel, :EncodedStartCmdInfo
- def initialize(name=nil, chargetype=nil, resourceconfiginfos=nil, frameworkname=nil, frameworkversion=nil, frameworkenvironment=nil, resourcegroupid=nil, tags=nil, imageinfo=nil, codepackagepath=nil, startcmdinfo=nil, trainingmode=nil, dataconfigs=nil, vpcid=nil, subnetid=nil, output=nil, logconfig=nil, tuningparameters=nil, logenable=nil, remark=nil, datasource=nil, callbackurl=nil, pretrainmodel=nil)
+ def initialize(name=nil, chargetype=nil, resourceconfiginfos=nil, frameworkname=nil, frameworkversion=nil, frameworkenvironment=nil, resourcegroupid=nil, tags=nil, imageinfo=nil, codepackagepath=nil, startcmdinfo=nil, trainingmode=nil, dataconfigs=nil, vpcid=nil, subnetid=nil, output=nil, logconfig=nil, tuningparameters=nil, logenable=nil, remark=nil, datasource=nil, callbackurl=nil, pretrainmodel=nil, encodedstartcmdinfo=nil)
@Name = name
@ChargeType = chargetype
@ResourceConfigInfos = resourceconfiginfos
@FrameworkName = frameworkname
@FrameworkVersion = frameworkversion
@@ -1895,10 +1897,11 @@
@LogEnable = logenable
@Remark = remark
@DataSource = datasource
@CallbackUrl = callbackurl
@PreTrainModel = pretrainmodel
+ @EncodedStartCmdInfo = encodedstartcmdinfo
end
def deserialize(params)
@Name = params['Name']
@ChargeType = params['ChargeType']
@@ -1960,10 +1963,14 @@
@CallbackUrl = params['CallbackUrl']
unless params['PreTrainModel'].nil?
@PreTrainModel = PreTrainModel.new
@PreTrainModel.deserialize(params['PreTrainModel'])
end
+ unless params['EncodedStartCmdInfo'].nil?
+ @EncodedStartCmdInfo = EncodedStartCmdInfo.new
+ @EncodedStartCmdInfo.deserialize(params['EncodedStartCmdInfo'])
+ end
end
end
# CreateTrainingTask返回参数结构体
class CreateTrainingTaskResponse < TencentCloud::Common::AbstractModel
@@ -5567,9 +5574,25 @@
@Points << pointinfo_tmp
end
end
@Labels = params['Labels']
@FrameType = params['FrameType']
+ end
+ end
+
+ # 编码后的启动命令信息
+ class EncodedStartCmdInfo < TencentCloud::Common::AbstractModel
+ # @param StartCmdInfo: 任务的启动命令,以base64格式输入,注意转换时需要完整输入{"StartCmd":"","PsStartCmd":"","WorkerStartCmd":""}
+ # @type StartCmdInfo: String
+
+ attr_accessor :StartCmdInfo
+
+ def initialize(startcmdinfo=nil)
+ @StartCmdInfo = startcmdinfo
+ end
+
+ def deserialize(params)
+ @StartCmdInfo = params['StartCmdInfo']
end
end
# 引擎版本
class EngineVersion < TencentCloud::Common::AbstractModel