Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Lightning-AI
/
lightning-thunder
Public
Notifications
You must be signed in to change notification settings
Fork
122
Star
1.5k
Code
Issues
420
Pull requests
66
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Support
torch.Tensor.view(dtype)
- #2213
#2213
Merged
t-vi
merged 11 commits into
main
Lightning-AI/lightning-thunder:main
from
view-with-dtype
Lightning-AI/lightning-thunder:view-with-dtype
Copy head branch name to clipboard
Aug 22, 2025
Conversation
Commits
11
(11)
Checks
Files changed
Merged
Support
torch.Tensor.view(dtype)
#2213
t-vi
merged 11 commits into
main
Lightning-AI/lightning-thunder:main
from
view-with-dtype
Lightning-AI/lightning-thunder:view-with-dtype
Copy head branch name to clipboard
Commits
Commits on Aug 11, 2025
`view` calls `to` when `*shape` is `torch.dtype`
Show description for 3bced6b
crcrpar
committed
3bced6b
View commit details
Copy full SHA for 3bced6b
Browse repository at this point
add TODO to improve/correct return value for view creation ops
Show description for a8340c6
crcrpar
committed
a8340c6
View commit details
Copy full SHA for a8340c6
Browse repository at this point
Disallow `tensor.view(dtype)` of tensor.dtype.itemsize != dtype.itemsize
Show description for f6afdbb
crcrpar
committed
f6afdbb
View commit details
Copy full SHA for f6afdbb
Browse repository at this point
introducing `bitcast`
Show description for 8e9045c
crcrpar
committed
8e9045c
View commit details
Copy full SHA for 8e9045c
Browse repository at this point
add test `Tensor.view(dtype)`
Show description for cda7b70
crcrpar
committed
cda7b70
View commit details
Copy full SHA for cda7b70
Browse repository at this point
add `view_with_dtype_opinfo` to `data_movement_ops`
Show description for 0c397a8
crcrpar
committed
0c397a8
View commit details
Copy full SHA for 0c397a8
Browse repository at this point
fix `dtype` check
Show description for 0f16f6b
crcrpar
committed
0f16f6b
View commit details
Copy full SHA for 0f16f6b
Browse repository at this point
remove commentout
Show description for e035e4e
crcrpar
committed
e035e4e
View commit details
Copy full SHA for e035e4e
Browse repository at this point
remove outdated condition
Show description for e45159d
crcrpar
committed
e45159d
View commit details
Copy full SHA for e45159d
Browse repository at this point
simplify aut-fwd/bwd registration
Show description for 1e3ae3e
crcrpar
committed
1e3ae3e
View commit details
Copy full SHA for 1e3ae3e
Browse repository at this point
avoid `torch.dtype` being translated to `thunder.core.dtypes.dtype`
Show description for d311ab3
crcrpar
committed
d311ab3
View commit details
Copy full SHA for d311ab3
Browse repository at this point
You can’t perform that action at this time.