Skip to content

Cannot feed value of shape (75970, 768) for Tensor 'LearningRate:0', which has shape '()' #7

Description

@lefnire

Python 3.7
Tensorflow 1.14 (also tried 1.13.1, 1.13.0rc1. 1.15 gives error ModuleNotFoundError: No module named 'tensorflow_core.keras')

from cvae import cvae
x = ... # shape [,768]
embedder = cvae.CompressionVAE(X)
embedder.train()
Session set up.
Trying to restore saved checkpoints from /app/temp ... No checkpoint found.
No model found to restore. Initialising new model.
Starting queues.
Reader threads started.
Storing checkpoint to /app/temp ... Done.
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2464, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2450, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1867, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.7/site-packages/flask_jwt/__init__.py", line 177, in decorator
    return fn(*args, **kwargs)
  File "/app/jwtauthtest/views.py", line 427, in get_books
    books = ml.resources(entries, logger=app.logger)
  File "/app/jwtauthtest/ml.py", line 523, in resources
    clusterer.fit(all_db)
  File "/app/jwtauthtest/autoencoder.py", line 95, in fit
    self.ae.train(x)
  File "/usr/local/lib/python3.7/site-packages/cvae/cvae.py", line 489, in train
    self.lr_placeholder: lr})
  File "/usr/local/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 929, in run
    run_metadata_ptr)
  File "/usr/local/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1128, in _run
    str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (75970, 768) for Tensor 'LearningRate:0', which has shape '()'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions