Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
511aeb88
Unverified
Commit
511aeb88
authored
Oct 11, 2025
by
Jiacheng Huang
Committed by
GitHub
Oct 11, 2025
Browse files
issue/495 修复 `infinicore.Tensor.copy_` 和 `infinicore.Tensor.as_strided` 的行为错误
parent
93e7d887
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/infinicore/tensor.py
python/infinicore/tensor.py
+2
-2
No files found.
python/infinicore/tensor.py
View file @
511aeb88
...
@@ -57,7 +57,7 @@ class Tensor:
...
@@ -57,7 +57,7 @@ class Tensor:
return
self
.
_underlying
.
is_is_pinned
()
return
self
.
_underlying
.
is_is_pinned
()
def
copy_
(
self
,
src
):
def
copy_
(
self
,
src
):
return
Tensor
(
self
.
_underlying
.
copy_
(
src
.
_underlying
)
)
self
.
_underlying
.
copy_
(
src
.
_underlying
)
def
to
(
self
,
*
args
,
**
kwargs
):
def
to
(
self
,
*
args
,
**
kwargs
):
return
Tensor
(
return
Tensor
(
...
@@ -65,7 +65,7 @@ class Tensor:
...
@@ -65,7 +65,7 @@ class Tensor:
)
)
def
as_strided
(
self
,
size
,
stride
):
def
as_strided
(
self
,
size
,
stride
):
Tensor
(
self
.
_underlying
.
as_strided
(
size
,
stride
))
return
Tensor
(
self
.
_underlying
.
as_strided
(
size
,
stride
))
def
contiguous
(
self
):
def
contiguous
(
self
):
return
Tensor
(
self
.
_underlying
.
contiguous
())
return
Tensor
(
self
.
_underlying
.
contiguous
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment