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
dlib
Commits
83921b39
Unverified
Commit
83921b39
authored
Oct 21, 2020
by
Adrià Arrufat
Committed by
GitHub
Oct 21, 2020
Browse files
Remove an unused variable and old commented code (#2217)
parent
3c82c225
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
dlib/cuda/cuda_dlib.cu
dlib/cuda/cuda_dlib.cu
+0
-3
No files found.
dlib/cuda/cuda_dlib.cu
View file @
83921b39
...
@@ -1821,7 +1821,6 @@ namespace dlib
...
@@ -1821,7 +1821,6 @@ namespace dlib
auto
idx
=
n
*
num
+
i
;
auto
idx
=
n
*
num
+
i
;
const
float
dx
=
gi
[
idx
]
*
g
[
n
];
const
float
dx
=
gi
[
idx
]
*
g
[
n
];
temp_dm
+=
dx
*-
v
[
n
]
+
dv
[
n
]
*
-
2
*
(
s
[
idx
]
-
m
[
n
])
/
num
;
temp_dm
+=
dx
*-
v
[
n
]
+
dv
[
n
]
*
-
2
*
(
s
[
idx
]
-
m
[
n
])
/
num
;
// dm[n] += dx*-v[n] + dv[n] * -2*(s[idx] - m[n])/num;
}
}
warp_reduce_atomic_add
(
dm
[
n
],
temp_dm
);
warp_reduce_atomic_add
(
dm
[
n
],
temp_dm
);
}
}
...
@@ -1829,13 +1828,11 @@ namespace dlib
...
@@ -1829,13 +1828,11 @@ namespace dlib
for
(
auto
n
:
grid_stride_range_y
(
0
,
ns
))
for
(
auto
n
:
grid_stride_range_y
(
0
,
ns
))
{
{
float
temp
=
0
;
for
(
auto
i
:
grid_stride_range
(
0
,
num
))
for
(
auto
i
:
grid_stride_range
(
0
,
num
))
{
{
auto
idx
=
n
*
num
+
i
;
auto
idx
=
n
*
num
+
i
;
const
float
dx
=
gi
[
idx
]
*
g
[
n
];
const
float
dx
=
gi
[
idx
]
*
g
[
n
];
out
[
idx
]
+=
dx
*
v
[
n
]
+
dv
[
n
]
*
2
*
(
s
[
idx
]
-
m
[
n
])
/
num
+
dm
[
n
]
/
num
;
out
[
idx
]
+=
dx
*
v
[
n
]
+
dv
[
n
]
*
2
*
(
s
[
idx
]
-
m
[
n
])
/
num
+
dm
[
n
]
/
num
;
// temp += dx*v[n] + dv[n] * 2*(s[idx] - m[n])/num + dm[n]/num;
}
}
}
}
}
}
...
...
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