Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing a type in shape kw argument leads to exciting tensors #508

Open
samuelpowell opened this issue May 20, 2019 · 1 comment
Open

Passing a type in shape kw argument leads to exciting tensors #508

samuelpowell opened this issue May 20, 2019 · 1 comment
Labels

Comments

@samuelpowell
Copy link

Passing the type Nothing instead of nothing as part of the specification of a dynamically sized tensor does not error, but produces a tensor of curious dimension:

julia> tf.placeholder(Float32, shape=(Nothing,2,3))
<Tensor placeholder_37:1 shape=(139935212585760, 139935209967216, 139935209967280) dtype=Float32>

Issue requested by @oxinabox following question on Slack.

----------------
Library Versions
----------------
ENV["TF_USE_GPU"] = 1
ENV["LIBTENSORFLOW"] = ~/libtensorflow/libtensorflow.so

tf_version(kind=:backend) = 1.13.1
Trying to evaluate tf_version(kind=:python) but got error: RemoteException(2, CapturedException(UndefVarError(:py_tf), Any[(#11 at TensorFlow.jl:189, 1), (#116 at process_messages.jl:276, 1), (run_work_thunk at process_messages.jl:56, 1), (run_work_thunk at process_messages.jl:65, 1), (#102 at task.jl:259, 1)]))
tf_version(kind=:julia) = 0.11.0

-------------
Python Status
-------------
PyCall.conda = false
Trying to evaluate ENV["PYTHON"] but got error: KeyError("PYTHON")
PyCall.PYTHONHOME = /usr:/usr
String(read(#= /home/spowell/.julia/packages/TensorFlow/q9pY2/src/version.jl:104 =# (Core.:(@cmd))("pip --version"))) = pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)

String(read(#= /home/spowell/.julia/packages/TensorFlow/q9pY2/src/version.jl:105 =# (Core.:(@cmd))("pip3 --version"))) = pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)


------------
Julia Status
------------
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) W-2123 CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
@malmaud malmaud added the bug label May 21, 2019
@malmaud
Copy link
Owner

malmaud commented May 21, 2019

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants