Lindevs
Programming tutorials, blogs & resources
Menu
  • Home ×
  • Tutorials
    • Programming Language
      • Python
      • PHP
      • Java
      • C
      • C++
      • JavaScript
    • Machine Learning
      • TensorFlow 2
      • PyTorch
    • Computer Vision
      • OpenCV
    • Embedded System
      • Raspberry Pi
      • Arduino
      • ESP8266
      • XIAO SAMD21
    • Home Automation
      • Tasmota
    • Mobile App Development
      • Android
      • Flutter
    • Game Development
      • Unity
    • Framework
      • Laravel
      • Symfony
    • Operating System
      • Linux
        • Ubuntu
      • Windows
    • Database
      • MySQL
    • DevOps
      • Command Line
      • Web Server
      • Grafana
      • Networking
      • Security
      • Containerization
  • Code Snippets
  • Electronics
    • Circuits
  • Questions
    • PHP
  • Contact
    • Sign In

PyTorch

Print PyTorch Model Summary using torchinfo

Print PyTorch Model Summary using torchinfo

  • June 7, 2023
  • PyTorch
  • 0 Comments
  • 2265 Views
When working with complex PyTorch models, it's important to understand the model's structure, such as the number of parameters and the shapes of input and output on each layer. This...
Set Default Device Globally in PyTorch

Set Default Device Globally in PyTorch

  • June 6, 2023
  • PyTorch
  • 0 Comments
  • 740 Views
One important thing of working with PyTorch is specifying the device on which tensors and models should be located, such as CPU or GPU. Setting the default device globally in...
Get Device on Which PyTorch Model is Currently Located

Get Device on Which PyTorch Model is Currently Located

  • June 5, 2023
  • PyTorch
  • 0 Comments
  • 1463 Views
Knowing the device (e.g. CPU, GPU) on which a PyTorch model is located is useful for several reasons, such as hardware resource management, performance optimization, compatibility and portability, resource allocation...
Calculate Number of Parameters in PyTorch Model

Calculate Number of Parameters in PyTorch Model

  • June 4, 2023
  • PyTorch
  • 0 Comments
  • 1033 Views
When working with PyTorch, knowing the number of parameters in the model is important for various reasons, such as model optimization, memory management, and performance evaluation. This knowledge helps to...
Get All Available Models in Torchvision

Get All Available Models in Torchvision

  • June 3, 2023
  • PyTorch
  • 0 Comments
  • 356 Views
Torchvision is a popular computer vision library in PyTorch that offers various pre-trained models. These models can be a convenient starting point for building computer vision applications. By understanding the...
Simple Linear Regression using PyTorch

Simple Linear Regression using PyTorch

  • April 29, 2022 (October 4, 2025)
  • PyTorch
  • 0 Comments
  • 759 Views
Simple linear regression is a statistical method that is used to analyze the relationship between two continuous variables: x - independent variable also known as explanatory or predictor. y...
  • «
  • 1
  • 2
Buy Me a Coffee

Recent Posts

  • Check C or C++ Type Size using CMake
  • Check If C Header File Exists using CMake
  • Delete Archived and Rotated Log Files on Linux
  • Check APT Package Management History
  • Get Available gcc or g++ Versions using APT

Archives

  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
Copyright © 2020 - 2025 · lindevs.com · All Rights Reserved