Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aa94433

Browse filesBrowse files
authored
Mark IPU device as not supports_as_strided (#89130) (#89998)
Currently causes issues in calls to `.to`. Pull Request resolved: #89130 Approved by: https://github.com/albanD
1 parent 59b4f3b commit aa94433
Copy full SHA for aa94433

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎c10/core/Device.h

Copy file name to clipboardExpand all lines: c10/core/Device.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ struct C10_API Device final {
148148

149149
/// Return true if the device supports arbirtary strides.
150150
bool supports_as_strided() const noexcept {
151-
return type_ != DeviceType::XLA && type_ != DeviceType::Lazy;
151+
return type_ != DeviceType::IPU && type_ != DeviceType::XLA &&
152+
type_ != DeviceType::Lazy;
152153
}
153154

154155
/// Same string as returned from operator<<.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.