Skip to content

Instantly share code, notes, and snippets.

@zmjjmz
Created December 20, 2017 19:03
Show Gist options
  • Save zmjjmz/d739cdfa52148eb814450e48cbf8ddb6 to your computer and use it in GitHub Desktop.
Save zmjjmz/d739cdfa52148eb814450e48cbf8ddb6 to your computer and use it in GitHub Desktop.
tfweight repro global included output
Using TensorFlow backend.
2017-12-20 14:02:35.782187: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
output from keras
[[[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]]
[[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]]]
Export dir exists! Resolving according to conflict policy: bump
Bumping to version 11
{'lookedup': <tf.Tensor 'lookedup:0' shape=(?, 5) dtype=int32>}
{'embed': <tf.Tensor 'embed/Gather:0' shape=(?, 5, 3) dtype=float32>}
model weights
tensor_name: embed/embeddings
[[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]]
tf serving output
[[[-0.01687755 0.0184539 -0.00320479]
[-0.01687755 0.0184539 -0.00320479]
[-0.01687755 0.0184539 -0.00320479]
[-0.01687755 0.0184539 -0.00320479]
[-0.01687755 0.0184539 -0.00320479]]
[[ 0.0064623 -0.02393595 -0.04818825]
[ 0.0064623 -0.02393595 -0.04818825]
[ 0.0064623 -0.02393595 -0.04818825]
[ 0.0064623 -0.02393595 -0.04818825]
[ 0.0064623 -0.02393595 -0.04818825]]]
keras output
[[[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]]
[[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment