set_alias

Applicable Products

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

x

Function Description

Sets the node alias. When option:ge.experiment.data_flow_deploy_info_path is used to specify the node deployment location, the flow_node_list field can be specified using the alias.

Prototype

1
def set_alias(self, name) -> FlowNode

Parameters

Parameter

Data type

Description

name

str

Alias of a FlowNode.

Returns

Current FlowNode.

Examples

1
2
3
import dataflow as df
flow_node = df.FlowNode(...)
flow_node.set_alias(name="hello")

Constraints

None