Code Monkey home page Code Monkey logo

Comments (3)

CyberZHG avatar CyberZHG commented on May 18, 2024

I wasn't able to reproduce the error. And the latest croned-CI showed that it works with Tensorflow 1.31.1:

https://travis-ci.org/CyberZHG/keras-bert/jobs/502926428

from keras-bert.

stale avatar stale commented on May 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from keras-bert.

zipzou avatar zipzou commented on May 18, 2024

I have the same issue with tensorflow v1.13.1. @CyberZHG

Stacktrace:

2019-11-14 20:45:50.798762: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Traceback (most recent call last):
  File "/Users/frank/PycharmProjects/new-classify/src/model.py", line 99, in <module>
    trainable=False
  File "/Users/frank/PycharmProjects/new-classify/venv/lib/python3.7/site-packages/keras_bert/loader.py", line 170, in load_trained_model_from_checkpoint
    load_model_weights_from_checkpoint(model, config, checkpoint_file, training=training)
  File "/Users/frank/PycharmProjects/new-classify/venv/lib/python3.7/site-packages/keras_bert/loader.py", line 98, in load_model_weights_from_checkpoint
    loader('bert/encoder/layer_%d/attention/self/query/kernel' % i),
  File "/Users/frank/PycharmProjects/new-classify/venv/lib/python3.7/site-packages/keras_bert/loader.py", line 18, in _loader
    return tf.train.load_variable(checkpoint_file, name)
  File "/Users/frank/PycharmProjects/new-classify/venv/lib/python3.7/site-packages/tensorflow/python/training/checkpoint_utils.py", line 82, in load_variable
    return reader.get_tensor(name)
  File "/Users/frank/PycharmProjects/new-classify/venv/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 370, in get_tensor
    status)
  File "/Users/frank/PycharmProjects/new-classify/venv/lib/python3.7/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.DataLossError: Checksum does not match: stored 2134402967 vs. calculated on the restored bytes 2095561258

from keras-bert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.