the compare does not consider about lower case letters.
in my case:
pretrained model by tensorflow 1.6 (python)
convert to tensorflow js model by tensorflowjs_converter
the input shape is (10,48,48,9) and the dataFormat is nhwc (which is in lower case)
but then compare use (dataFormat === 'NHWC') will cause inputDepth = x.shape[1] = 48
and may raise exception
uncaught (in promise) Error: Dimension size must be evenly divisible by 9 but is 48 for depthToSpace with input shape 10,48,48,9
at assert (util.ts:81)
at depthToSpace_ (array_ops.ts:1083)
at depthToSpace (operation.ts:46)
at executeOp$15 (transformation_executor.ts:85)
at executeOp$16 (operation_executor.ts:81)
at graph_executor.ts:168
at engine.ts:156
at e.scopedRun (engine.ts:167)
at e.tidy (engine.ts:153)
at e.tidy (environment.ts:186)
Code to reproduce the bug / link to feature request
To get help from the community, check out our Google group.
TensorFlow.js version
in html
converter
Browser version
chrome Version 71.0.3578.98 (Official Build) (64-bit)
Describe the problem or feature request
function depthToSpace_
the compare does not consider about lower case letters.
in my case:
Code to reproduce the bug / link to feature request
see detail above