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

Function pipe_with_error

dali/test/python/test_dali_proxy.py:360–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

358
359 @pipeline_def
360 def pipe_with_error():
361 images = fn.external_source(name="images", no_copy=True)
362 error_anchor = types.Constant(np.array([-10], dtype=np.float32))
363 return fn.crop(
364 images, crop=(224, 224), crop_pos_x=error_anchor, out_of_bounds_policy="error"
365 )
366
367 pipe = pipe_with_error(
368 batch_size=batch_size,

Callers 1

Calls 2

ConstantMethod · 0.80
cropMethod · 0.80

Tested by

no test coverage detected