Return raw array from fused-pipeline fallback
Some checks are pending
GPU Worker CI/CD / test (push) Waiting to run
GPU Worker CI/CD / deploy (push) Blocked by required conditions

Downstream code expects arrays with .flags attribute, not GPUFrame.
Extract the underlying gpu/cpu array before returning.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-04 11:42:20 +00:00
parent 9583ecb81a
commit 4b0f1b0bcd

View File

@@ -929,6 +929,9 @@ def prim_fused_pipeline(img, effects_list, **dynamic_params):
result = gpu_contrast(result, factor, 0)
elif op == 'invert':
result = gpu_invert(result)
# Return raw array, not GPUFrame (downstream expects arrays with .flags attribute)
if isinstance(result, GPUFrame):
return result.gpu if result.is_on_gpu else result.cpu
return result
# Get image dimensions