GithubHelp home page GithubHelp logo

mmontielpz / jetseg Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 3.0 2.28 MB

NeurIPS 2023

License: Creative Commons Attribution Share Alike 4.0 International

Python 4.47% Jupyter Notebook 95.48% Shell 0.05%
computer-vision deep-learning efficient-deep-learning embedded-systems jetson-agx-xavier pytorch real-time semantic-segmentation

jetseg's Introduction

Hi ๐Ÿ‘‹, I'm Miguel Lopez

A passionate deep learning researcher from Mexico

mmontielpz

  • ๐ŸŒฑ Iโ€™m currently learning Efficient Deep Learning, Neural Architecture Search, MLOps, Kubernetes
  • ๐Ÿ’ฌ Ask me about Python, PyTorch, Linux, Jetson, Deep Learning, Computer Vision Tasks, Autonomous Vehicles, GPU Embedded Systems, Real-Time

  • ๐Ÿ“ซ How to reach me [email protected]

  • ๐Ÿ“„ Know about my experiences (CV)

Connect with me:

mmontielpz mmontiel Miguel Lopez-Montiel Miguel Lopez-Montiel Miguel Lopez-Montiel Miguel Lopez-Montiel Miguel Lopez-Montiel Miguel Lopez-Montiel Miguel Lopez-Montiel

Languages and Tools:

aws bash c cplusplus docker gcp git linux opencv pandas python pytorch scikit_learn seaborn tensorflow

mmontielpz

ย mmontielpz

mmontielpz

jetseg's People

Contributors

mmontielpz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

joihn everestrs

jetseg's Issues

A couple efficiency question

hi,
thanks for this repo,
here are a couple efficiency questions:
a)
In REU function Why is there a cast to double ? Why only in the backward pass ? I think this is unefficient, maybe useless and could be left in FP32, what do you think ?

    @staticmethod
    def backward(ctx, grad_output: torch.Tensor) -> torch.Tensor:
        """Performs a backpropagation."""

        (data, ) = ctx.saved_tensors
        data = data.double()
        grad = torch.where(data >= 0.0, 1.0, torch.exp(data) * (data + 1))
        return grad_output * grad

b)
why no usage of FP16 mixed prediction which could speed up training and inference ?

c) in REU function

    def forward(ctx, data: torch.Tensor) -> torch.Tensor:
        """Performs a forward pass."""

        ctx.save_for_backward(data)
        return torch.where(data <= 0.0, data * torch.exp(data), data)

    @staticmethod
    def backward(ctx, grad_output: torch.Tensor) -> torch.Tensor:
        """Performs a backpropagation."""

        (data, ) = ctx.saved_tensors
        data = data.double()
        grad = torch.where(data >= 0.0, 1.0, torch.exp(data) * (data + 1))
        return grad_output * grad

The exponential is computed 2 times (forward, backward) over the whole range (positive and negative).
Is think is could be computed only 1 time, and only for the negative value, for efficiency

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.