Skip to content

Instantly share code, notes, and snippets.

View ramanshrivastava's full-sized avatar
💭
Always learning

Raman ramanshrivastava

💭
Always learning
View GitHub Profile
@ramanshrivastava
ramanshrivastava / torch.py
Created August 11, 2025 11:22
quick torch with gpu
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader, TensorDataset
import time
def check_gpu_availability():
"""Check and display GPU availability information"""
print("=" * 50)
print("GPU AVAILABILITY CHECK")