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
FAST-RNNT
Commits
53c52678
Commit
53c52678
authored
Jul 10, 2021
by
Daniel Povey
Browse files
Remove print statement'
parent
1dc0d559
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
torch_learned_nonlin/learned_nonlin_cuda_kernel.cu
torch_learned_nonlin/learned_nonlin_cuda_kernel.cu
+5
-5
No files found.
torch_learned_nonlin/learned_nonlin_cuda_kernel.cu
View file @
53c52678
...
@@ -146,7 +146,6 @@ void learned_nonlin_kernel(
...
@@ -146,7 +146,6 @@ void learned_nonlin_kernel(
for
(
int
i
=
0
;
i
<
K
;
i
++
)
{
for
(
int
i
=
0
;
i
<
K
;
i
++
)
{
int
isign
=
i
*
sign
;
int
isign
=
i
*
sign
;
y_vals
[
K
+
isign
]
=
sum
*
scale
;
y_vals
[
K
+
isign
]
=
sum
*
scale
;
printf
(
"c = %d, y_vals[%d] = %f
\n
"
,
c
,
K
+
isign
,
sum
*
scale
);
sum
+=
params_buf
[
Koffset
+
isign
];
sum
+=
params_buf
[
Koffset
+
isign
];
}
}
y_vals
[
0
]
=
y_vals
[
1
];
// Both threads do this but it's OK.
y_vals
[
0
]
=
y_vals
[
1
];
// Both threads do this but it's OK.
...
@@ -584,10 +583,11 @@ torch::Tensor learned_nonlin_cuda(torch::Tensor input,
...
@@ -584,10 +583,11 @@ torch::Tensor learned_nonlin_cuda(torch::Tensor input,
int
shared_mem_numel
=
2
*
N
+
3
;
int
shared_mem_numel
=
2
*
N
+
3
;
std
::
cout
<<
"C,B,T,N = "
<<
C
<<
","
<<
B
<<
","
<<
T
<<
","
<<
N
if
(
false
)
<<
", images_per_thread_block = "
<<
images_per_thread_block
std
::
cout
<<
"C,B,T,N = "
<<
C
<<
","
<<
B
<<
","
<<
T
<<
","
<<
N
<<
", grid_dim_y = "
<<
grid_dim_y
<<
", images_per_thread_block = "
<<
images_per_thread_block
<<
"
\n
"
;
<<
", grid_dim_y = "
<<
grid_dim_y
<<
"
\n
"
;
TORCH_CHECK
(
THREADS_PER_BLOCK
/
images_per_thread_block
>=
T
||
TORCH_CHECK
(
THREADS_PER_BLOCK
/
images_per_thread_block
>=
T
||
images_per_thread_block
==
1
,
images_per_thread_block
==
1
,
...
...
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