Giter VIP home page Giter VIP logo

Comments (2)

krzim avatar krzim commented on July 21, 2024

The residual blocks are programmatically named in the TCN and I'm assuming those are the layers you're concerned with. They're all named under tf.name_scopes which is used to add a prefix to all ops under the scope. The unique name of each TCN means that even those programmatically generated names for the residual blocks fall under different scope trees (is that the right term?).

You would need to explicitly tell Tensorflow to reuse variables/share weights with something like a tf.variable_scope("some_name", reuse=True) context. There's a pretty great StackOverflow answer covering this topic here.

tl;dr: Not a stupid question and the weights should be unique.

from keras-tcn.

vlawhern avatar vlawhern commented on July 21, 2024

That explanation makes sense.. I did see that the weights were being assigned under a name_scope (see https://github.com/philipperemy/keras-tcn/blob/master/tcn/tcn.py#L87) but was thrown off a bit since in the model summary some of the layer names matched.

After I posted my issue I did some further checking of the weights directly to confirm that they are all different and in fact they are. So yes all the weights/layers are unique.

Thanks for the help... will close the thread.

from keras-tcn.

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.