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
I'm planning to add as many static types as possible to the code, e.g. sample(self, num_steps : int,...). This has two benefits:
Prevents many simple bugs
Makes the code much easier to read/use. For example, simply by looking at the type judgment x_initial : str | jaxarray , one would see that x_initial must be either a str or a jax array.
The text was updated successfully, but these errors were encountered:
On Sat, Oct 14, 2023 at 5:35 PM Reuben ***@***.***> wrote:
I'm planning to add as many static types as possible to the code, e.g. sample(self,
num_steps : int,...). This has two benefits:
1. Prevents many simple bugs
2. Makes the code much easier to read/use. For example, simply by
looking at the type judgment x_initial : str | jaxarray , one would
see that x_initial must be *either* a str or a jax array.
—
Reply to this email directly, view it on GitHub
<#26>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKIPD4FTYVR3LK5MS2JIMYLX7KWNDAVCNFSM6AAAAAA6AKRXH6VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DGMZUGI2DSOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
On Sat, Oct 14, 2023 at 5:35 PM Reuben ***@***.***> wrote:
I'm planning to add as many static types as possible to the code, e.g. sample(self,
num_steps : int,...). This has two benefits:
1. Prevents many simple bugs
2. Makes the code much easier to read/use. For example, simply by
looking at the type judgment x_initial : str | jaxarray , one would
see that x_initial must be *either* a str or a jax array.
—
Reply to this email directly, view it on GitHub
<#26>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKIPD4FTYVR3LK5MS2JIMYLX7KWNDAVCNFSM6AAAAAA6AKRXH6VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DGMZUGI2DSOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
I'm planning to add as many static types as possible to the code, e.g.
sample(self, num_steps : int,...)
. This has two benefits:x_initial : str | jaxarray
, one would see that x_initial must be either a str or a jax array.The text was updated successfully, but these errors were encountered: