Skip to content

tensorflow 1.x and 2.x produce different results during inferencing based on the same parameters #66212

Closed
@jamesYu365

Description

@jamesYu365

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

tf 1.15 and tf 2.13

Custom code

Yes

OS platform and distribution

Windows

Mobile device

No response

Python version

3.8

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

None

GPU model and memory

None

Current behavior?

I trained a LSTM in Tensorflow1.15, then load the saved model parameters on Tensorflow2.13, the prediction is significantly different from Tensorflow1.15.

Standalone code to reproduce the issue

https://drive.google.com/file/d/1spHn4waDE3vNQzslA7AD06E0XQ1i-qL_/view?usp=sharing

Relevant log output

No response

Metadata

Metadata

Labels

TF 1.15for issues seen on TF 1.15comp:apisHighlevel API related issuestype:bugBug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions