Steady-State-Flow-With-Neural-Nets icon indicating copy to clipboard operation
Steady-State-Flow-With-Neural-Nets copied to clipboard

TypeError: Tensors in list passed to 'values' of 'Pack' Op have types [int32, int32, int32, float32] that don't all match.

Open crankson123 opened this issue 6 years ago • 5 comments

When I conduct the code, there exist some errors about 'TypeError: Tensors in list passed to 'values' of 'Pack' Op have types [int32, int32, int32, float32] that don't all match.'. I use Python 3.5, so how can I solve this issue, hoping that you can help me.

crankson123 avatar Aug 08 '18 15:08 crankson123

I'm on the same boat. It might be that we are using python 3 :/

je-santos avatar Oct 02 '18 20:10 je-santos

That is correct, I was doing a division and I was expecting an int but it gave a float because of python 3. I just updated this and it should work now. I just tested it with 3.6.

loliverhennigh avatar Oct 02 '18 21:10 loliverhennigh

Thanks a lot Oliver! I'll give it a shot.

je-santos avatar Oct 02 '18 21:10 je-santos

Hey Oliver, while testing the code I got the following error:

_File "C:\Users\ME\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\framework\errors_impl.py", line 526, in exit c_api.TF_GetCode(self.status.status))

NotFoundError: Failed to create a directory: ../checkpoints/min_queue_examples_1000/model_res/nr_res_blocks_1/gated_res_True/nonlinearity_concat_elu/batch_size_8/max_steps_500000/keep_prob_0.7; No such file or directory_

Do you know what might be causing this?

je-santos avatar Oct 04 '18 02:10 je-santos

@je-santos Hi,do you know how to save this problem "NotFoundError: Failed to create a directory: ../checkpoints/min_queue_examples_1000/model_res/nr_res_blocks_1/gated_res_True/nonlinearity_concat_elu/batch_size_8/max_steps_500000/keep_prob_0.7; No such file or directory_"?

xycim avatar Dec 25 '18 12:12 xycim