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
make_color_iter() returns the same color index when the number of colors is 2.
make_color_iter() does not use all possible colors (for example with num_rows=2 and num_cols=3, the function returns
[0, 4, 2, 0, 4, 2] as color indexes, so 3 colors among 6 possible.
I am not sure if there is a logic behind the selection of the color index besides not selecting the color twice in a row and ensuring that the adjacent colors are not too similar, but this is a proposed quick fix that I think solves the issue:
Description
Hi JAX team,
I have noticed the following behaviors:
[0, 4, 2, 0, 4, 2] as color indexes, so 3 colors among 6 possible.
I am not sure if there is a logic behind the selection of the color index besides not selecting the color twice in a row and ensuring that the adjacent colors are not too similar, but this is a proposed quick fix that I think solves the issue:
I have tested several cases, and cannot see anything wrong in this possible fix.
Please, let me know :)
Best regards
Jerome
System info (python version, jaxlib version, accelerator, etc.)
jaxlib version = 0.4.33
The text was updated successfully, but these errors were encountered: