Class: TencentCloud::Tke::V20220501::GPUConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::GPUConfig
- Defined in:
- lib/v20220501/models.rb
Overview
机型名称与GPU相关的参数,包括驱动版本,CUDA版本,cuDNN版本,是否开启MIG以及是否开启Fabric等相关配置信息
Instance Attribute Summary collapse
-
#GPUParams ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#InstanceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instancetype = nil, gpuparams = nil) ⇒ GPUConfig
constructor
A new instance of GPUConfig.
Constructor Details
#initialize(instancetype = nil, gpuparams = nil) ⇒ GPUConfig
Returns a new instance of GPUConfig.
1187 1188 1189 1190 |
# File 'lib/v20220501/models.rb', line 1187 def initialize(instancetype=nil, gpuparams=nil) @InstanceType = instancetype @GPUParams = gpuparams end |
Instance Attribute Details
#GPUParams ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1185 1186 1187 |
# File 'lib/v20220501/models.rb', line 1185 def GPUParams @GPUParams end |
#InstanceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1185 1186 1187 |
# File 'lib/v20220501/models.rb', line 1185 def InstanceType @InstanceType end |
Instance Method Details
#deserialize(params) ⇒ Object
1192 1193 1194 1195 1196 1197 1198 |
# File 'lib/v20220501/models.rb', line 1192 def deserialize(params) @InstanceType = params['InstanceType'] unless params['GPUParams'].nil? @GPUParams = GPUParams.new @GPUParams.deserialize(params['GPUParams']) end end |