-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Some tensor shape are mismatched during execution.
System information
Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
TensorFlow.js installed from (npm or script link): script link
TensorFlow.js version (use command below): 3.19.0
Browser version: Microsoft Edge 125.0.2535.67(64 bit)、Google Chrome 125.0.6422.112 (64 bit)
Tensorflow.js Converter Version: -
Exception Report
{ "model_inf": "from:0 to:1 operator:identity from:0 to:4 operator:identity from:0 to:8 operator:identity from:0 to:9 operator:identity from:1 to:2 operator:identity from:1 to:7 operator:ReLU from:1 to:9 operator:identity from:2 to:3 operator:ELU from:2 to:4 operator:reducemean from:3 to:4 operator:ELU from:4 to:5 operator:identity from:5 to:6 operator:identity from:5 to:7 operator:PReLU from:6 to:7 operator:identity from:7 to:8 operator:identity from:7 to:9 operator:identity from:8 to:9 operator:identity ",
"error_message": "Sizes of tensors must match except in dimension 1. Expected size 48 but got size 1 for tensor number 1 in the list."
}
Bug Description
Expected size 48 but got size 1 for tensor number 1 in the list. However, the same model executes perfectly in TensorFlow. Is there any tensor data lost during TensorFlow.js execution or converting? Maybe there are some faults in the implementation of the operator ReduceMean or PRELU?
Similar faults are also reproduced under 3 other operators(e.g, RELU, ELU, etc). This tensor data lost is triggered occasionally, which depends on condition of the cache in the browser. Maybe there are some faults in the cache reuse mechanism of the browser(e.g., latent refreshing)?