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

Function expr_pipe

dali/test/python/conditionals/test_logical_expressions.py:125–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124 @pipeline_def(enable_conditionals=True, **kwargs)
125 def expr_pipe():
126 boolean_input_0 = fn.random.coin_flip(dtype=types.DALIDataType.BOOL, seed=6)
127 boolean_input_1 = fn.random.coin_flip(dtype=types.DALIDataType.BOOL, seed=9)
128 boolean_input_2 = fn.random.coin_flip(dtype=types.DALIDataType.BOOL, seed=12)
129 boolean_input_3 = fn.random.coin_flip(dtype=types.DALIDataType.BOOL, seed=15)
130 return boolean_input_0 or boolean_input_1 and boolean_input_2 or not boolean_input_3
131
132 pipes = [regular_pipe(), expr_pipe()]
133 compare_pipelines(*pipes, bs, iters)

Callers 3

test_complex_expressionFunction · 0.85
test_lazy_evalFunction · 0.85
test_lazy_eval_with_oobFunction · 0.85

Calls 2

ConstantMethod · 0.80
int32Method · 0.80

Tested by

no test coverage detected