-
Notifications
You must be signed in to change notification settings - Fork 946
added inference model interface for sharing between layer model and frozen model #1053
Conversation
Needs a bit more more polish on the doc. Ping me when you take a pass and I'll take another look. Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks failed. src/types.ts, line 149 at r1 (raw file):
why rxjs? Rephrase as: Common interface for a machine learning model that can do inference. src/types.ts, line 155 at r1 (raw file):
I don't think this is the correct. Model with multiple inputs takes Tensor[]. Please read carefully the params in https://js.tensorflow.org/api/0.11.1/#tf.Model.predict src/types.ts, line 156 at r1 (raw file):
What is src/types.ts, line 163 at r1 (raw file):
again check docs in https://js.tensorflow.org/api/0.11.1/#tf.Model.predict. I think this is incorrect. Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. src/types.ts, line 156 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
typo: Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. src/types.ts, line 149 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
+1 This doesn't seem to have anything to do with RxJS. src/types.ts, line 155 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
+1 to what Daniel said. If the model has a single input SymbolicTensor, then
If the model has > 1 input SymbolicTensors, the
So I still don't understand why Comments from Reviewable |
Thanks! PTAL! Review status: 0 of 2 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. src/types.ts, line 149 at r1 (raw file): Previously, caisq (Shanqing Cai) wrote…
lol, it has been in my head too much last couple days. sorry. src/types.ts, line 155 at r1 (raw file): Previously, caisq (Shanqing Cai) wrote…
updated, I think for single Tensor input, we should recommend user to always use Tensor. src/types.ts, line 156 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
ud src/types.ts, line 163 at r1 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. Comments from Reviewable |
Reviewed 1 of 2 files at r1. src/index.ts, line 47 at r2 (raw file):
FYI, NamedTensorMap will conflict with the NamedTensorMap that is exported by the converter: https://github.com/tensorflow/tfjs-converter/blob/master/src/index.ts#L18 src/types.ts, line 156 at r1 (raw file): Previously, pyu10055 (Ping Yu) wrote…
thanks for removing "Batch mode" src/types.ts, line 143 at r2 (raw file):
Optional. List of output node names to evaluate when running predict(). Defaults to the model's default output. src/types.ts, line 160 at r2 (raw file):
typo: concatenated src/types.ts, line 168 at r2 (raw file):
I would use the @param and @return jsdoc tags to split up this documentation into sections, respective for each param. Like what we do in model.predict in layers: https://github.com/tensorflow/tfjs-layers/blob/v0.6.1/src/engine/training.ts#L1054 Comments from Reviewable |
Note though the comment about exporting NamedTensorMap and the conflict that will happen in union package. |
thanks! Review status: 1 of 2 files reviewed at latest revision, 6 unresolved discussions, some commit checks failed. src/index.ts, line 47 at r2 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
yes, thank you for pointing that out. src/types.ts, line 143 at r2 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. src/types.ts, line 160 at r2 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. src/types.ts, line 168 at r2 (raw file): Previously, dsmilkov (Daniel Smilkov) wrote…
Done. Comments from Reviewable |
This change is