data_size

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

Obtains the length of user_data.

Prototype

1
2
@property
def data_size(self)

Parameters

None

Returns

Length of user_data

Examples

1
2
3
4
5
6
7
import dataflow as df
graph = df.FlowGraph(...)
user_data_str = "UserData123"
result = graph.fetch_data () # Fetch the result asynchronously.
flowinfo = result[1]
user_data_size = flowinfo.data_size
print(user_data_size)

Constraints

None