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
gaoqiong
composable_kernel
Commits
684e012e
Commit
684e012e
authored
Sep 12, 2022
by
Po-Yen, Chen
Browse files
Use more stricter error threshold
parent
73c3a98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
example/37_permute/run_permute_example.inc
example/37_permute/run_permute_example.inc
+3
-3
No files found.
example/37_permute/run_permute_example.inc
View file @
684e012e
...
...
@@ -77,7 +77,7 @@ bool run_permute(const ExecutionConfig& config, const Problem& problem)
}
return
ck
::
utils
::
check_err
(
b
.
mData
,
host_b
.
mData
,
"Error: incorrect results in output tensor"
,
1
e
-
10
,
1
e
-
10
);
b
.
mData
,
host_b
.
mData
,
"Error: incorrect results in output tensor"
,
1
e
-
6
,
1
e
-
6
);
#else
// extend tensor shape from [N, H, W] to [N, H, W, NUM_ELEMS_IN_BUNDLE]
using
DataType
=
detail
::
get_bundled_t
<
ADataType
,
NUM_ELEMS_IN_BUNDLE
>
;
...
...
@@ -104,8 +104,8 @@ bool run_permute(const ExecutionConfig& config, const Problem& problem)
b
.
mDesc
.
GetElementSpaceSize
()
*
NUM_ELEMS_IN_BUNDLE
},
ck
::
span
<
const
DataType
>
{
extended_host_b
.
mData
},
"Error: incorrect results in output tensor"
,
1
e
-
5
,
1
e
-
5
);
1
e
-
6
,
1
e
-
6
);
#endif
}
...
...
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