GithubHelp home page GithubHelp logo

Comments (6)

neuralminds avatar neuralminds commented on July 22, 2024 1

thanks for these examples. just tried with Text Classification for character_rnn now how can i write a serving_input_fn for it ?
extended the code to save but getting error, please help
from tensorflow.contrib.learn.python.learn.utils import input_fn_utils
feature_spec = {"feature":tf.FixedLenFeature([100],tf.int64)}
serving_input_fn = input_fn_utils.build_parsing_serving_input_fn(feature_spec)
and than
classifier.export_savedmodel(export_dir_base='model', serving_input_receiver_fn=serving_input_fn)

and getting this error

TypeError: Failed to convert object of type <class 'dict'> to Tensor. Contents: {'feature': <tf.Tensor 'ParseExample/ParseExample:0' shape=(?, 100) dtype=int64>}. Consider casting elements to a supported type.

Thanks

from skflow.

ilblackdragon avatar ilblackdragon commented on July 22, 2024

Done. The models in examples are a lot simpler and work on word and character level RNN and CNN.

from skflow.

marziehsaeidi avatar marziehsaeidi commented on July 22, 2024

Hi, I am trying to run Text Classification examples but it seems datasets is not recognised under skflow:

module 'skflow' has no attribute 'datasets'

from skflow.

terrytangyuan avatar terrytangyuan commented on July 22, 2024

You need to install the most recent release of TensorFlow and check the examples there. Please post issues to TensorFlow repo.

from skflow.

zd123 avatar zd123 commented on July 22, 2024

Hey, if you dont want to re-install the nightly build, you can manually download the same dataset. I've documented ez steps here: http://stackoverflow.com/questions/37206459/tensorflow-examples-all-fail-due-to-attributeerror-module-object-has-no-attri

from skflow.

jeffheaton avatar jeffheaton commented on July 22, 2024

I think some compile errors have been introduced to this example from all the TF changes

from skflow.

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.