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.
1277 1278 1279 1280 |
# File 'lib/v20220501/models.rb', line 1277 def initialize(instancetype=nil, gpuparams=nil) @InstanceType = instancetype @GPUParams = gpuparams end |
Instance Attribute Details
#GPUParams ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
1275 1276 1277 |
# File 'lib/v20220501/models.rb', line 1275 def GPUParams @GPUParams end |
#InstanceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
1275 1276 1277 |
# File 'lib/v20220501/models.rb', line 1275 def InstanceType @InstanceType end |
Instance Method Details
#deserialize(params) ⇒ Object
1282 1283 1284 1285 1286 1287 1288 |
# File 'lib/v20220501/models.rb', line 1282 def deserialize(params) @InstanceType = params['InstanceType'] unless params['GPUParams'].nil? @GPUParams = GPUParams.new @GPUParams.deserialize(params['GPUParams']) end end |