Git Product home page Git Product logo

Comments (8)

quarkw avatar quarkw commented on August 30, 2024 3

I migrated the code to TF 1.0 and submitted a pull request.

from tensorflow-mnist-tutorial.

martin-gorner avatar martin-gorner commented on August 30, 2024 1

Thanks Guillaume and quarkw. I know about this an I plan to fix it next week. Your pull req. will help.

from tensorflow-mnist-tutorial.

kenwaln avatar kenwaln commented on August 30, 2024

Same issue -- thanks for the workaround.

from tensorflow-mnist-tutorial.

kgehmlich avatar kgehmlich commented on August 30, 2024

Thanks for the workaround! @martin-gorner may I suggest updating the readme to reflect this requirement until your fix is pushed?

from tensorflow-mnist-tutorial.

kerotech avatar kerotech commented on August 30, 2024

Hi, I'm having problem when using python3 mnist_1.0_softmax.py in Windows. It return errors as below
'python3' is not recognized as an internal or external command,
operable program or batch file. Any advice for this?

from tensorflow-mnist-tutorial.

OttoYing avatar OttoYing commented on August 30, 2024

Yes. I having the same wrong here.And also put a question on stack overflow😂

from tensorflow-mnist-tutorial.

martin-gorner avatar martin-gorner commented on August 30, 2024

Please follows the Windows installation instructions in the INSTALL.txt file. In short, install Anaconda, it comes with a command line whre you can issue Python commands (maybe in the Anaconda install, "python3" is just "python"). In any case, you type this in the Anaconda command line window, not the Windows command line.

Closing this issue because it is about TF1.0 compatibility, not windows compatibility.

from tensorflow-mnist-tutorial.

rafalfirlejczyk avatar rafalfirlejczyk commented on August 30, 2024

I work with Windows 7/64, Phyton 3.6.0 Anaconda 4.3.0 (64bit), TF1.0.
I cloned the updated example and run the mnist_1.0_softmax.py (after commit +init = tf.global_variables_initializer()).
Te same error as above: TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

Here is lising:
C:\ProgramData\Anaconda3\Scripts\tensorflow-mnist-tutorial>python mnist_1.0_softmax.py
I d:\build\tensorflow\tensorflow_gpu-r0.12\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA librar
y cublas64_80.dll locally
I d:\build\tensorflow\tensorflow_gpu-r0.12\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA librar
y cudnn64_5.dll locally
I d:\build\tensorflow\tensorflow_gpu-r0.12\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA librar
y cufft64_80.dll locally
I d:\build\tensorflow\tensorflow_gpu-r0.12\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA librar
y nvcuda.dll locally
I d:\build\tensorflow\tensorflow_gpu-r0.12\tensorflow\stream_executor\dso_loader.cc:128] successfully opened CUDA librar
y curand64_80.dll locally
Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.
Extracting data\train-images-idx3-ubyte.gz
Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes.
Extracting data\train-labels-idx1-ubyte.gz
Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes.
Extracting data\t10k-images-idx3-ubyte.gz
Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes.
Extracting data\t10k-labels-idx1-ubyte.gz
Traceback (most recent call last):
File "mnist_1.0_softmax.py", line 78, in
I = tensorflowvisu.tf_format_mnist_images(X, Y, Y_) # assembles 10x10 images by default
File "C:\ProgramData\Anaconda3\Scripts\tensorflow-mnist-tutorial\tensorflowvisu.py", line 42, in tf_format_mnist_image
s
everything_incorrect_first = tf.concat([incorrectly_recognised_indices, correctly_recognised_indices], 0) # images r
eordered with indeces of unrecognised images first
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1075, in concat
dtype=dtypes.int32).get_shape(
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 669, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\constant_op.py", line 176, in _constant_t
ensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\constant_op.py", line 165, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 367, in make_tensor
_proto
_AssertCompatible(values, dtype)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 302, in _AssertComp
atible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

from tensorflow-mnist-tutorial.

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.