Replies: 1 comment
-
Hi @mortner31 I think we do have a typo in the doc, missing the The answer to your general question is that it's a bit arbitrary, but depends on intended usage: You could imagine wanting deterministic to be an apply-time argument, in case you wanted to use the same layer in multiple places both deterministically or not. But I agree that it's usually set by a global config hyperparameter, in which case having deterministic set at construction time would be fine. We could move it to be a construction arg if people find the current setup to be a weird choice, but it's just sort of a decision based on how you think the layer will be used. For the short-term, if our library version is awkward for your use case, I'd encourage forking it and moving it to a construction time argument. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to use dropout examples from the doc https://docs.google.com/document/d/1hYavTVPaKVVe9Be8pCB7yW7r6dDv3RALVNit8NZca4c/
The linen provided example is as follows.
For me it raises questions, I therefore changed the example like this :
My point is that I wanted to use the
deterministic
flag at module creation rather than usage like it is done in the ConvNet example:But maybe, I am shortsighted on something. Why would I apply a different logic for the
ŧrain
flag and thedeterministic
flag ?Beta Was this translation helpful? Give feedback.
All reactions