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

Function select

dali/test/python/conditionals/test_nests.py:49–53  ·  view source on GitHub ↗
(ops, selected_op_idx, *op_args, unpacking_select=False, **op_kwargs)

Source from the content-addressed store, hash-verified

47 return a, b
48
49 def select(ops, selected_op_idx, *op_args, unpacking_select=False, **op_kwargs):
50 if unpacking_select:
51 return _select_unpack(0, len(ops) - 1, ops, selected_op_idx, op_args, op_kwargs)
52 else:
53 return _select_fwd(0, len(ops) - 1, ops, selected_op_idx, op_args, op_kwargs)
54
55 def rotate(image, label):
56 image = fn.rotate(image, angle=42)

Callers 1

pipelineFunction · 0.70

Calls 2

_select_unpackFunction · 0.85
_select_fwdFunction · 0.85

Tested by

no test coverage detected