We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32d5374 commit b63c831Copy full SHA for b63c831
flax/nnx/rnglib.py
@@ -415,6 +415,9 @@ def __getattr__(self, name: str):
415
def __call__(self):
416
return self.default()
417
418
+ def key(self):
419
+ return self.default()
420
+
421
def __iter__(self) -> tp.Iterator[str]:
422
for name, stream in vars(self).items():
423
if isinstance(stream, RngStream):
@@ -433,6 +436,9 @@ def items(self):
433
436
434
437
yield name, stream
435
438
439
+ def split(self, splits: int):
440
+ return self.fork(split=splits)
441
442
def fork(
443
self,
444
/,
0 commit comments