Giter Club home page Giter Club logo

Comments (1)

baggepinnen avatar baggepinnen commented on May 22, 2024

This is still an issue for this case

input_data = placeholder(Int32, shape=[20, 20])
embedding = get_variable("embedding", [10000, 200], Float32)
inputs = gather(embedding, input_data)
inputs = TensorFlow.split(1, 20, inputs)

20-element Array{TensorFlow.Tensor,1}:
Error showing value of type Array{TensorFlow.Tensor,1}:
ERROR: BoundsError: attempt to access 1-element Array{TensorFlow.ShapeInference.TensorShape,1} at index [2]
 in getindex(::Array{TensorFlow.ShapeInference.TensorShape,1}, ::Int64) at ./array.jl:386
 in get_shape(::TensorFlow.Tensor) at /local/home/fredrikb/.julia/v0.5/TensorFlow/src/shape_inference.jl:81
 in show(::IOContext{Base.AbstractIOBuffer{Array{UInt8,1}}}, ::TensorFlow.Tensor) at /local/home/fredrikb/.julia/v0.5/TensorFlow/src/core.jl:711
 in #sprint#304(::IOContext{Base.Terminals.TTYTerminal}, ::Function, ::Int64, ::Function, ::TensorFlow.Tensor, ::Vararg{TensorFlow.Tensor,N}) at ./strings/io.jl:35
 in (::Base.#kw##sprint)(::Array{Any,1}, ::Base.#sprint, ::Int64, ::Function, ::TensorFlow.Tensor, ::Vararg{TensorFlow.Tensor,N}) at ./<missing>:0
 in alignment(::IOContext{Base.Terminals.TTYTerminal}, ::Array{TensorFlow.Tensor,1}, ::Array{Int64,1}, ::Array{Int64,1}, ::Int64, ::Int64, ::Int64) at ./show.jl:1278
 in print_matrix(::IOContext{Base.Terminals.TTYTerminal}, ::Array{TensorFlow.Tensor,1}, ::String, ::String, ::String, ::String, ::String, ::String, ::Int64, ::Int64) at ./show.jl:1406
 in print_matrix(::IOContext{Base.Terminals.TTYTerminal}, ::Array{TensorFlow.Tensor,1}, ::String, ::String, ::String) at ./show.jl:1378
 in #showarray#330(::Bool, ::Function, ::IOContext{Base.Terminals.TTYTerminal}, ::Array{TensorFlow.Tensor,1}, ::Bool) at ./show.jl:1617
 in display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Array{TensorFlow.Tensor,1}) at ./REPL.jl:132

from tensorflow.jl.

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.