Code Monkey home page Code Monkey logo

Comments (9)

williamFalcon avatar williamFalcon commented on May 2, 2024 1

let’s keep it as is for now. i don’t want to introduce breaking changes often (pytorch-lightning)

from lightning.

williamFalcon avatar williamFalcon commented on May 2, 2024

yeah, the problem was that there were issues with the test models being outside of the package.

But if you want to make the change, I do think it would be cleaner. Feel free to submit a PR! It would be super helpful!

Tests will also need to be updated.

from lightning.

williamFalcon avatar williamFalcon commented on May 2, 2024

Awesome PR, thanks for submitting! Interested in looking at any of the other issues we need help with?

@Borda

from lightning.

Borda avatar Borda commented on May 2, 2024

I was thinking about some workaround automatic testing, formation and coverage...
I will prepare another PR :)

from lightning.

williamFalcon avatar williamFalcon commented on May 2, 2024

amazing! That would be great. Right now a big issue is having to manually run the GPU tests for free.

I'll create an issue to track these changes there

from lightning.

gregunz avatar gregunz commented on May 2, 2024

I am new to python packages, modules and stuff but I think that now that the directory examples is in the root, the setup.py detects it as a package with find_packages().

This results in anyone installing your pytorch-lightning package to also have a examples package installed into their environment.

As a matter of fact, it is preventing me from loading one of my local module named examples.

from lightning.

gregunz avatar gregunz commented on May 2, 2024

The above commit could solve this.
It simply excludes the directory from the package.

Note that it also excludes the tests which should be causing the same type of problems.
I will proceed with a pull request if it makes sense to you @williamFalcon @Borda.

from lightning.

Borda avatar Borda commented on May 2, 2024

I do agree with the change, or even explicitly name the 'pytorch-lightning'
Btw, why the package is imported pytorch... not just torch... such as PyTorch

from lightning.

gregunz avatar gregunz commented on May 2, 2024

Whitelisting as you suggest seems a good idea BUT doing so, sub-packages will not be imported.

About the name, I also think torch-lightning makes a lot of sense.

from lightning.

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.