Coder Social home page Coder Social logo

UnimplementedError: TensorArray has size zero, but element shape <unknown> is not fully defined. Currently only static shapes are supported when packing zero-size TensorArrays about sequence_tagging HOT 2 CLOSED

guillaumegenthial avatar guillaumegenthial commented on July 17, 2024
UnimplementedError: TensorArray has size zero, but element shape is not fully defined. Currently only static shapes are supported when packing zero-size TensorArrays

from sequence_tagging.

Comments (2)

guillaumegenthial avatar guillaumegenthial commented on July 17, 2024

Hi @MingjieQian,
Hard to tell what problem it is. Probably have to do with your TF install. It seems like there were some issues for sentences of length 1 with the CRF but it seems like your error is different.
I tested on my laptop with a sentence of length 1 and a word of length 1 and it seems to work.
In case that might help, here is a snapshot of my environment:
backports.weakref==1.0.post1 bleach==1.5.0 click==6.7 enum34==1.1.6 Flask==0.12.2 Flask-Cors==3.0.3 funcsigs==1.0.2 futures==3.2.0 gunicorn==19.7.1 html5lib==0.9999999 itsdangerous==0.24 Jinja2==2.10 Markdown==2.6.10 MarkupSafe==1.0 mock==2.0.0 numpy==1.13.3 pbr==3.1.1 protobuf==3.5.1 scipy==1.0.0 six==1.11.0 tensorflow==1.4.1 tensorflow-tensorboard==0.4.0rc3 Werkzeug==0.14.1

Try using a virtual env with a cpu version of tensorflow!

from sequence_tagging.

MingjieQian avatar MingjieQian commented on July 17, 2024

Thanks very much for your help, Guilla. A cpu version of TF works.

from sequence_tagging.

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.