Code Monkey home page Code Monkey logo

Comments (4)

stephanielees avatar stephanielees commented on September 27, 2024 1

Thank you for your help, @Sar2580P. I just want to clarify a couple of things, I hope you don't mind.

So, if I install and import Lightning, I'll get many features in addition to Pytorch-lightning. However, if I only import the Pytorch-lightning, I will still need to import Lightning to be able to use, let's say, Fabric. Is that correct?

Regarding importing pytorch-lightning, I still need to import it as pytorch_lightning instead of just lightning. But that works for now. Can you please share your code to install and import Pytorch-lightning?

from pytorch-lightning.

Sar2580P avatar Sar2580P commented on September 27, 2024 1

Its absolutely correct.

If you want to use features of pytorch-lightning from lightning then do following:

pip install lightning
import lightning.pytorch as L

Hope this helps

from pytorch-lightning.

Sar2580P avatar Sar2580P commented on September 27, 2024

Pytorch-Lightning is just a wrapper on Pytorch as mentioned here

Lightning is a frame-work which has many other features like :
app, pytorch, fabric, data, store
Screenshot 2024-06-04 220600

Each feature in Lightning is also released as a package... that's why you are seeing Pytorch-Lightning as a package.
Regarding your issue :
I have both installed on my local and I can import both modules ....

Hope I could clear your doubt...
I would appreciate any further discussion.

from pytorch-lightning.

stephanielees avatar stephanielees commented on September 27, 2024

It works! Thank you so much for your help @Sar2580P

from pytorch-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.