Giter Site home page Giter Site logo

About SLAYER deConv feature about lava-dl HOT 3 CLOSED

alexggener avatar alexggener commented on September 26, 2024
About SLAYER deConv feature

from lava-dl.

Comments (3)

bamsumit avatar bamsumit commented on September 26, 2024

@alexggener transposed convolution synapses are already available in lava-dl SLAYER. The block api for transposed convolution is not available though.

So there are two options for you:

  1. Not use block api (block api is just for convenience) and initialize the neuron, synapse and quantization directly in your network definition until transposed convolution support in block api is available.
    e.g:

    neuron = slayer.neuron.cuba.Neuron(...)
    synapse = slayer.synapse.ConvTranspose(...)
    synapse.pre_hook_fx = neuron.quantize_8bit  # if you need quantization

    and call them in sequence in forward():

    spike_output = neuron(synapse(spike_input))
  2. Implement block api and contribute to the repo. I can list out what needs to be done.

from lava-dl.

alexggener avatar alexggener commented on September 26, 2024

@bamsumit Thanks for pointing us to the right direction. Implementing it on the block api seems doable so we'll try to contribute to it. Any guidance during the process would be appreciated.

from lava-dl.

bamsumit avatar bamsumit commented on September 26, 2024

@alexggener sounds good. Here are the steps

  1. in slayer/base.py, implement AbstractConvT and AbstractUnpool. Follow the flow similar to AbstractConv and AbstractPool respectively, with different synapse of-course.
  2. Derive ConvT and Unpool in all the other neuron specific blocks.

from lava-dl.

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.