You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_get_online_features fails on GPU hosts: expected tensor built on cpu #6778
sdk/python/tests/unit/online_store/test_online_retrieval.py::test_get_online_features should pass on any host, with or without a CUDA device.
Current Behavior
On a host with CUDA available, the test fails:
RuntimeError: Expected all tensors to be on the same device, but got other
is on cpu, different from other tensors on cuda:0
(when checking argument in method wrapper_CUDA__equal)
OnlineResponse.to_tensor() places its output on cuda when a GPU is present (sdk/python/feast/online_response.py), but the avg_orders_day assertion builds its expected tensor without a device= argument, so it stays on cpu.
The test already computes device and passes it for the driver_id and trips assertions — only avg_orders_day omits it.
I'll pick this up. The fix is to pass the already-computed device to the avg_orders_day expected tensor in test_get_online_features, matching the driver_id and trips assertions. I'll open a PR shortly.
Activity
Toyenzo commentedon Oct 6, 2026
I'll pick this up. The fix is to pass the already-computed
deviceto theavg_orders_dayexpected tensor intest_get_online_features, matching thedriver_idandtripsassertions. I'll open a PR shortly.