Updates to Playground for warp.

PiperOrigin-RevId: 797037846
Change-Id: I3828b48aead8a7534a4e8cd735c96017353daa3b
This commit is contained in:
Baruch Tabanpour
2025-08-19 15:11:32 -07:00
committed by Copybara-Service
parent 4bad134ba2
commit fd96de330e
+2 -2
View File
@@ -1301,7 +1301,7 @@ def _get_data_into_warp(
)
result_i = result[i] if batched else result
ncon = d_i._impl.ncon[0]
nefc = int(d_i._impl.nefc[0])
nefc = int(d_i._impl.nefc)
# nj = int(d_i._impl.nj[0])
nj = 0 # TODO(btaba): add nj back
@@ -1322,7 +1322,7 @@ def _get_data_into_warp(
value = getattr(d_i, field.name)
if field.name in ('ne', 'nl', 'nf'):
value = value[0]
pass
elif field.name in ('nefc', 'ncon'):
value = {'nefc': nefc, 'ncon': ncon}[field.name]
elif field.name.endswith('xmat') or field.name == 'ximat':