question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

raise TypeError("Cannot convert {} to a dtype. {}".format(type_value, e))

See original GitHub issue

hi , so am using tensorflow1.0 on python 3.5.2 on windows ,ive successfully run “prepare-data.py” but when am running “train-autoencoder.py” i get the following error

raise TypeError("Cannot convert {} to a dtype. {}".format(type_value, e)) TypeError: Cannot convert (19528,) to a dtype. data type not understood

i think its because of the initializer so i changed “initializer = tf.zeros_initializer((self.vocab_size,))” to “initializer = tf.zeros_initializer” and It worked but i get another error when it tries to use the “projection_b” variable , seems like we have to specify the shape of it “Shape of a new variable (autoencoder/projection_b) must be fully defined, but instead was <unknown>.” i dont know how to fix this one ,i really appreciate it if anyone could help me , thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erickrfcommented, Apr 21, 2018

I’ve rewritten a good deal of the code and it runs fine on tensorflow 1.7.

0reactions
erickrfcommented, Apr 8, 2018

Mostly yes, because of tensorflow. I stopped working with autoencoders but plan to take it again in the next week or so.

Em dom, 8 de abr de 2018 15:43, Nic McPhee notifications@github.com escreveu:

Is this just completely borked because of breaking updates to TensorFlow? It looks like it would be useful, but it throws buckets of errors for me and it’s unclear whether it’s worth trying to get this to work, or just moving on to other options.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/erickrf/autoencoder/issues/5#issuecomment-379572480, or mute the thread https://github.com/notifications/unsubscribe-auth/AAR-UwVbr_m6OrxlzQDkhS8Xp2yYe3cOks5tmlpsgaJpZM4PpA0X .

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - How to fix "TypeError: Cannot convert the value to a ...
As the official docs for implementing a DCGAN in TensorFlow suggest, first create a BinaryCrossentropy object and then call this object with ...
Read more >
Cannot convert a symbolic Tensor (Neg_1:0) to a numpy array
My code: from math import e def cal_sigma(y): return 1 / (1 + ... format(self.name)) NotImplementedError: Cannot convert a symbolic Tensor ...
Read more >
Source code for pyspark.sql.types - Apache Spark
[docs] def typeName(self): raise TypeError( "StructField does not have typeName. " "Use typeName on its type explicitly instead.") [docs]class StructType( ...
Read more >
Change data type of given numpy array - GeeksforGeeks
In order to change the dtype of the given array object, we will use numpy.astype() function. The function takes an argument which is...
Read more >
Source code for dask.array.core
n\n".format(dtype=suggest_dtype) ) if suggest_dtype else "" ) msg ... __name @name.setter def name(self, val): raise TypeError( "Cannot set name ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found