Skip to content

Commit b3f12b2

Browse files
rloufricardoV94
authored andcommitted
Implement TensorFromScalar as a pass-through
1 parent 47f7637 commit b3f12b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/link/jax/dispatch/tensor_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def makevector(*x):
182182
@jax_funcify.register(TensorFromScalar)
183183
def jax_funcify_TensorFromScalar(op, **kwargs):
184184
def tensor_from_scalar(x):
185-
return jnp.array(x)
185+
return x
186186

187187
return tensor_from_scalar
188188

0 commit comments

Comments
 (0)