Closed kedevked closed 3 years ago
Ping @caisq for thoughts on what the expected behaviour in layers should be? I've don' think I've ever relied on automatic reshaping of input so I'm surprised the first one works. I think we've generally advised users to batch all inputs (even if its a batch of one).
related to #3985
This has been answered on stackoverflow and was accepted, closing this issue. Feel free to @mention if this is not correct, so that we can reopen the issue. Thank you
System information
Describe the current behavior
It seems that currently
model.predict
in tfjs expands the input only when the input is a tensor1dDescribe the expected behavior
in python
model.predict
will expand the dim whenever it does not match the inputShapeStandalone code to reproduce the issue
Other info / logs
https://stackoverflow.com/questions/64115997/tensorflowjs-expects-3-dimensions-even-though-i-trained-it-with-2-in-python/64169813#64169813