Skip to content

Commit

Permalink
added a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Nov 4, 2023
1 parent 981e3d0 commit 589f773
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dummy-files/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,14 @@ def meshgrid(
indexing: str = "xy",
out: Optional[JaxArray] = None,
) -> List[JaxArray]:
return jnp.meshgrid(*arrays, sparse=sparse, indexing=indexing)
return jnp.meshgrid(*arrays, sparse=sparse, indexing=indexing)

def ones_like(
x: JaxArray,
/,
*,
dtype: jnp.dtype,
device: jaxlib.xla_extension.Device = None,
out: Optional[JaxArray] = None,
) -> JaxArray:
return jnp.ones_like(x, dtype=dtype)

0 comments on commit 589f773

Please sign in to comment.