MCPcopy Create free account
hub / github.com/NVIDIA/DALI / actual_pipe

Function actual_pipe

dali/test/python/test_dali_variable_batch_size.py:1599–1615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1597 device_id=0,
1598 )
1599 def actual_pipe():
1600 variable_condition = fn.external_source(source=input_data, cycle=False, device=device)
1601 variable_data = variable_condition + 42.0
1602 if variable_condition:
1603 other_variable_data = variable_condition + 100
1604 output = variable_data + other_variable_data
1605 else:
1606 output = types.Constant(np.array(42.0), device="cpu")
1607 logical_expr = variable_condition or not variable_condition
1608 logical_expr2 = not variable_condition and variable_condition
1609 return (
1610 output,
1611 variable_condition,
1612 variable_data,
1613 logical_expr,
1614 logical_expr2,
1615 )
1616
1617 return actual_pipe()
1618

Callers 3

conditional_wrapperFunction · 0.85
split_merge_wrapperFunction · 0.85
not_validate_wrapperFunction · 0.85

Calls 4

ConstantMethod · 0.80
splitMethod · 0.80
mergeMethod · 0.45
not_Method · 0.45

Tested by

no test coverage detected