-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graph subnetwork: Multiple outputs #515
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a minor comment, based on personal preference, otherwise it looks good to me. Please wait some other review before making any change.
the old one. | ||
val get_subnetwork : ?copy:bool -> ?make_inputs:string array -> network -> string array -> network | ||
(** | ||
Constructs a subnetwork of nodes on which ``output_names`` depend, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be useful to name the options here:
``get_subnetwork ?copy ?make_inputs network output_names`` constructs a subnetwork of nodes of ``network`` ...
@mseri's comment makes sense to me as well. I have a commit ready to push. Another point I forgot to bring up: Would it perhaps make sense to drop or rename the |
Sounds reasonable to me to rename it, this could allow to keep backward compatibility although I don't see the need for this. I think we should wait to see what @jzstark @ryanrhymes or @tachukao think about it. |
agree with the name change, looks good to me! |
Looks very good to me. Both |
@ryanrhymes, I picked |
CHANGES: * various documentation improvements (thanks @pveber, @UnixJunkie, @Fourchaux) * Fix use of access operators (owlbarn/owl#543) * Upgrade to ocamlformat 0.15.0 (thanks @gpetiot owlbarn/owl#535) * keep_dims option (owlbarn/owl#531) * stats: fix infinite loop in ecdf * Use Fun.protect to ensure all file descriptors are being closed * owl_ndarray_maths: improve user experience in case of errors * owl_io: close file descriptors also in case of errors * owl_dense_ndarray_generic: fix error on printing 0-ary arrays * fixed bug in sub forward mode (owlbarn/owl#533) * Add stack to Algodiff (owlbarn/owl#528) * added log_sum_exp to Ndarray and Algodiff (owlbarn/owl#527) * added single-precision and double-precision Bessel functions to Ndarray (owlbarn/owl#526) * Fixes owlbarn/owl#518 by introducing another `/` to resolve data directory (@jotterbach owlbarn/owl#519) * Graph Slice node (resolves owlbarn/owl#483) (@mreppen owlbarn/owl#517) * Graph subnetwork: Multiple outputs (@mreppen owlbarn/owl#515) * Added kron and swap to Algodiff operations (owlbarn/owl#512) * various other small fixes
Hi, I finally got around to adding this small change. This was discussed in #491 I personally don't need it, but for the sake of completeness, here it is.
Example:
Two comments:
true
. If this is undesirable, d684020 is a version without and I can PR that instead.PS. I have myself found this subnetwork feature really useful :)