Giter Club home page Giter Club logo

Comments (2)

malmaud avatar malmaud commented on May 22, 2024

Hmm, where did that NodeDef come from? Are you sure it's actually valid? Can you link me to to the raw protobytes for it so I can examine it?

from tensorflow.jl.

yeesian avatar yeesian commented on May 22, 2024

I'm not sure anymore, since I can't reproduce it anymore, sorry. Closing this issue for now, unless it comes up again.

The closest I've come to reproducing the same NodeDef is in this file:

  | | |_| | | | (_| |  |  Version 0.5.0 (2016-09-19 18:14 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin13.4.0

julia> using TensorFlow; const TF = TensorFlow
TensorFlow

julia> using ProtoBuf

julia> nodedef = open("nodedef.proto") do f
           readproto(f, TF.tensorflow.NodeDef())
       end
name: hidden1_1/weights
op: Variable
attr {
  key: dtype
  value {
    type: Float32
  }
}
attr {
  key: shape
  value {
    shape: [28,128]
  }
}
attr {
  key: _output_shapes
  value {
      }
}
attr {
  key: shared_name
  value {
    string:
  }
}
attr {
  key: container
  value {
    string:
  }
}


julia> dump(nodedef)
TensorFlow.tensorflow.NodeDef
  name: String "hidden1_1/weights"
  op: String "Variable"
  input: Array{AbstractString}((0,))
  device: String ""
  attr: Dict{AbstractString,TensorFlow.tensorflow.AttrValue}
    slots: Array{UInt8}((16,)) UInt8[0x01,0x00,0x01,0x00,0x00,0x01,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00]
    keys: Array{AbstractString}((16,))
      1: String "dtype"
      2: #undef
      3: String "shape"
      4: #undef
      5: #undef
      ...
      12: #undef
      13: #undef
      14: #undef
      15: #undef
      16: #undef
    vals: Array{TensorFlow.tensorflow.AttrValue}((16,))
      1: TensorFlow.tensorflow.AttrValue
        s: #undef
        i: Int64 0
        f: Float32 0.0
        b: Bool false
        _type: Int32 1
        shape: #undef
        tensor: #undef
        list: #undef
        placeholder: #undef
      2: #undef
      3: TensorFlow.tensorflow.AttrValue
        s: #undef
        i: Int64 0
        f: Float32 0.0
        b: Bool false
        _type: Int32 0
        shape: TensorFlow.tensorflow.TensorShapeProto
          dim: Array{TensorFlow.tensorflow.TensorShapeProto_Dim}((2,))
            1: TensorFlow.tensorflow.TensorShapeProto_Dim
              size: Int64 28
              name: String ""
            2: TensorFlow.tensorflow.TensorShapeProto_Dim
              size: Int64 128
              name: String ""
          unknown_rank: Bool false
        tensor: #undef
        list: #undef
        placeholder: #undef
      4: #undef
      5: #undef
      ...
      12: #undef
      13: #undef
      14: #undef
      15: #undef
      16: #undef
    ndel: Int64 0
    count: Int64 5
    age: UInt64 5
    idxfloor: Int64 1
    maxprobe: Int64 0

which now works fine for me:

julia> TF.Operation(nodedef)
<Operation 'hidden1_1/weights'>

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.