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

Function check_raises

dali/test/python/operator_1/test_arithmetic_ops.py:966–975  ·  view source on GitHub ↗
(kinds, types, op, shape)

Source from the content-addressed store, hash-verified

964
965
966def check_raises(kinds, types, op, shape):
967 if isinstance(op, tuple):
968 dali_op = op[0]
969 else:
970 dali_op = op
971 iterator = iter(ExternalInputIterator(batch_size, shape, types, kinds))
972 pipe = ExprOpPipeline(
973 kinds, types, iterator, dali_op, batch_size=batch_size, num_threads=2, device_id=0
974 )
975 pipe.run()
976
977
978def check_raises_re(kinds, types, op, shape, _, msg):

Callers 2

check_raises_reFunction · 0.85
check_raises_teFunction · 0.85

Calls 3

ExprOpPipelineClass · 0.85
runMethod · 0.45

Tested by

no test coverage detected