data_size

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

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