DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
numpy array to tensors
n
=
np
.
ones
(
5
)
t
=
torch
.
from_numpy
(
n
)
Source by pytorch.org #
PREVIOUS
NEXT
Tagged:
#numpy
#array
#tensors
ADD COMMENT
Topic
COMMENT
Name
6+7 =
Submit