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

Function test_incorrect_param

dali/test/python/operator_2/test_random_beta.py:207–215  ·  view source on GitHub ↗
(a, b, dtype, msg)

Source from the content-addressed store, hash-verified

205 (1, np.full((2,), 1), types.DALIDataType.FLOAT, "cannot be converted"),
206)
207def test_incorrect_param(a, b, dtype, msg):
208
209 @pipeline_def(batch_size=2, device_id=0, num_threads=4, seed=111)
210 def pipeline():
211 return fn.random.beta(alpha=a, beta=b, dtype=dtype)
212
213 with assert_raises(RuntimeError, glob=msg):
214 p = pipeline()
215 p.run()

Callers

nothing calls this directly

Calls 3

assert_raisesFunction · 0.90
pipelineFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected