1. Foreword
Looking up a lot of information, I found that the originator of this error report was tf.concat “Expected int32, got a list containing tendors of type”_ The reason and solution of “message ‘instead.”
2. Reasons
The specific analysis of errors caused by TensorFlow version is as follows:
In TensorFlow versions before 1.0, the parameter order of concat() is number first and tensors second. The example is as follows:
tf.concat(3,pooled_outputs_i)
For versions after TensorFlow 1.0, the parameter order of concat() is tensors first and numbers second. For example:
tf.concat(pooled_outputs_i,3)
3. Solutions
Smart as you, you should know how to debug when you see the two explanations in the reason. That is to say, adjust the order of concat parameters and everything will be OK
Read More:
- Error in Tensorflow using variables: List of Tensors when single Tensor expected
- [Solved] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and
- [Solved] RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of s
- [Solved] runtime error: reference binding to null pointer of type ‘std::vector<int, std::allocator<int>>‘
- Libtorch Error: Expected object of type Variable but found type CUDALongType for argument #2 ‘index’
- [Solved] TFrecords Create Datas Error: Number of int64 values != expected. Values size: 1 but output shape: [3]
- [Solved] Tensorflow-gpu 2.0.0 Run Error: ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- [Solved] Error running query: MetaException(message:Got exception: java.net.ConnectException Call From XXXX
- SQL Server Error: Arithmetic overflow error converting expression to data type int.
- Error: (list) object cannot be coerced to type ‘double’
- Tensorflow GPU error (4 Type Error and their Solutions)
- [Solved] Eureka Startup Error: Root name (‘timestamp‘) does not match expected type EurekaApplications
- Introduce wangeditor5 to run an error: You may need an appropriate loader to handle this file type (es6 compatibility issue)
- [Solved] Tensorflow Error: Failed to load the native TensorFlow runtime.
- Tensorflow error: attributeerror: module ‘tensorflow_ API. V1. Train ‘has no attribute’ summarywriter ‘
- error: expected ‘;‘ at end of member declaration and expected ‘)‘ before ‘&‘ toke Errors
- [Solved] swiper Error: The requested module ‘react’ is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export
- Grpc Error: failed to unmarshal the received message proto: can‘t skip unknown wire type 7
- TensorFlow error: AttributeError: module ‘tensorflow_core._api.v2.train’ has no attribute ‘Optimizer‘
- RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future rel