()
| 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, |
no test coverage detected