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
OpenDAS
torch-scatter
Commits
1270e840
Commit
1270e840
authored
Dec 18, 2017
by
rusty1s
Browse files
typo
parent
7a3b18ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
benchmark/benchmark.ipynb
benchmark/benchmark.ipynb
+14
-14
No files found.
benchmark/benchmark.ipynb
View file @
1270e840
...
...
@@ -28,20 +28,7 @@
" output = type(n).fill_(0)\n",
" index = torch.LongTensor(n).fill_(0)\n",
" input = type(n).fill_(1)\n",
" return output, index, input\n",
"\n",
"n = 1000000\n",
"num_runs = 100"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"types = [torch.FloatTensor, torch.DoubleTensor, torch.ByteTensor, torch.CharTensor,\n",
" torch.ShortTensor, torch.IntTensor, torch.LongTensor]"
" return output, index, input"
]
},
{
...
...
@@ -76,6 +63,19 @@
" return runtimes"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"types = [torch.FloatTensor, torch.DoubleTensor, torch.ByteTensor, torch.CharTensor,\n",
" torch.ShortTensor, torch.IntTensor, torch.LongTensor]\n",
"\n",
"n = 1000000\n",
"num_runs = 100"
]
},
{
"cell_type": "markdown",
"metadata": {},
...
...
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