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
nerfacc
Commits
107d7466
Unverified
Commit
107d7466
authored
Oct 25, 2022
by
Yuanchen Guo
Committed by
GitHub
Oct 24, 2022
Browse files
Change dummy variable in Grid to tensor instead of parameter. (#83)
parent
f9be5ad3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nerfacc/grid.py
nerfacc/grid.py
+1
-1
No files found.
nerfacc/grid.py
View file @
107d7466
...
...
@@ -66,7 +66,7 @@ class Grid(nn.Module):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
()
self
.
_dummy
=
torch
.
nn
.
Parameter
(
torch
.
empty
(
0
)
)
self
.
register_buffer
(
"
_dummy
"
,
torch
.
empty
(
0
),
persistent
=
False
)
@
property
def
device
(
self
)
->
torch
.
device
:
...
...
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