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
61487e0a
"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "13e7c85d521d7bb7cba0bf7d743366f7708b9df7"
Commit
61487e0a
authored
Aug 07, 2021
by
Chao Liu
Browse files
fix
parent
ae98b52a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
58 deletions
+58
-58
host/driver_offline/conv_bwd_driver_offline.cpp
host/driver_offline/conv_bwd_driver_offline.cpp
+29
-29
host/driver_offline/conv_fwd_driver_offline.cpp
host/driver_offline/conv_fwd_driver_offline.cpp
+29
-29
No files found.
host/driver_offline/conv_bwd_driver_offline.cpp
View file @
61487e0a
...
@@ -46,29 +46,29 @@ int main(int argc, char* argv[])
...
@@ -46,29 +46,29 @@ int main(int argc, char* argv[])
exit
(
1
);
exit
(
1
);
}
}
const
ConvTensorLayout
layout
=
static_cast
<
ConvTensorLayout
>
(
a
toi
(
argv
[
1
]));
const
ConvTensorLayout
layout
=
static_cast
<
ConvTensorLayout
>
(
std
::
s
toi
(
argv
[
1
]));
const
ConvBackwardDataAlgo
algo
=
static_cast
<
ConvBackwardDataAlgo
>
(
a
toi
(
argv
[
2
]));
const
ConvBackwardDataAlgo
algo
=
static_cast
<
ConvBackwardDataAlgo
>
(
std
::
s
toi
(
argv
[
2
]));
const
bool
do_verification
=
a
toi
(
argv
[
3
]);
const
bool
do_verification
=
std
::
s
toi
(
argv
[
3
]);
const
int
init_method
=
a
toi
(
argv
[
4
]);
const
int
init_method
=
std
::
s
toi
(
argv
[
4
]);
const
bool
do_log
=
a
toi
(
argv
[
5
]);
const
bool
do_log
=
std
::
s
toi
(
argv
[
5
]);
const
int
nrepeat
=
a
toi
(
argv
[
6
]);
const
int
nrepeat
=
std
::
s
toi
(
argv
[
6
]);
const
index_t
N
=
a
toi
(
argv
[
7
]);
const
index_t
N
=
std
::
s
toi
(
argv
[
7
]);
const
index_t
K
=
a
toi
(
argv
[
8
]);
const
index_t
K
=
std
::
s
toi
(
argv
[
8
]);
const
index_t
C
=
a
toi
(
argv
[
9
]);
const
index_t
C
=
std
::
s
toi
(
argv
[
9
]);
const
index_t
Y
=
a
toi
(
argv
[
10
]);
const
index_t
Y
=
std
::
s
toi
(
argv
[
10
]);
const
index_t
X
=
a
toi
(
argv
[
11
]);
const
index_t
X
=
std
::
s
toi
(
argv
[
11
]);
const
index_t
Hi
=
a
toi
(
argv
[
12
]);
const
index_t
Hi
=
std
::
s
toi
(
argv
[
12
]);
const
index_t
Wi
=
a
toi
(
argv
[
13
]);
const
index_t
Wi
=
std
::
s
toi
(
argv
[
13
]);
const
index_t
conv_stride_h
=
a
toi
(
argv
[
14
]);
const
index_t
conv_stride_h
=
std
::
s
toi
(
argv
[
14
]);
const
index_t
conv_stride_w
=
a
toi
(
argv
[
15
]);
const
index_t
conv_stride_w
=
std
::
s
toi
(
argv
[
15
]);
const
index_t
conv_dilation_h
=
a
toi
(
argv
[
16
]);
const
index_t
conv_dilation_h
=
std
::
s
toi
(
argv
[
16
]);
const
index_t
conv_dilation_w
=
a
toi
(
argv
[
17
]);
const
index_t
conv_dilation_w
=
std
::
s
toi
(
argv
[
17
]);
const
index_t
in_left_pad_h
=
a
toi
(
argv
[
18
]);
const
index_t
in_left_pad_h
=
std
::
s
toi
(
argv
[
18
]);
const
index_t
in_left_pad_w
=
a
toi
(
argv
[
19
]);
const
index_t
in_left_pad_w
=
std
::
s
toi
(
argv
[
19
]);
const
index_t
in_right_pad_h
=
a
toi
(
argv
[
20
]);
const
index_t
in_right_pad_h
=
std
::
s
toi
(
argv
[
20
]);
const
index_t
in_right_pad_w
=
a
toi
(
argv
[
21
]);
const
index_t
in_right_pad_w
=
std
::
s
toi
(
argv
[
21
]);
const
index_t
YEff
=
(
Y
-
1
)
*
conv_dilation_h
+
1
;
const
index_t
YEff
=
(
Y
-
1
)
*
conv_dilation_h
+
1
;
const
index_t
XEff
=
(
X
-
1
)
*
conv_dilation_w
+
1
;
const
index_t
XEff
=
(
X
-
1
)
*
conv_dilation_w
+
1
;
...
@@ -83,12 +83,12 @@ int main(int argc, char* argv[])
...
@@ -83,12 +83,12 @@ int main(int argc, char* argv[])
exit
(
1
);
exit
(
1
);
}
}
const
ConvTensorLayout
layout
=
static_cast
<
ConvTensorLayout
>
(
a
toi
(
argv
[
1
]));
const
ConvTensorLayout
layout
=
static_cast
<
ConvTensorLayout
>
(
std
::
s
toi
(
argv
[
1
]));
const
ConvBackwardDataAlgo
algo
=
static_cast
<
ConvBackwardDataAlgo
>
(
a
toi
(
argv
[
2
]));
const
ConvBackwardDataAlgo
algo
=
static_cast
<
ConvBackwardDataAlgo
>
(
std
::
s
toi
(
argv
[
2
]));
const
bool
do_verification
=
a
toi
(
argv
[
3
]);
const
bool
do_verification
=
std
::
s
toi
(
argv
[
3
]);
const
int
init_method
=
a
toi
(
argv
[
4
]);
const
int
init_method
=
std
::
s
toi
(
argv
[
4
]);
const
bool
do_log
=
a
toi
(
argv
[
5
]);
const
bool
do_log
=
std
::
s
toi
(
argv
[
5
]);
const
int
nrepeat
=
a
toi
(
argv
[
6
]);
const
int
nrepeat
=
std
::
s
toi
(
argv
[
6
]);
constexpr
index_t
N
=
128
;
constexpr
index_t
N
=
128
;
constexpr
index_t
C
=
192
;
constexpr
index_t
C
=
192
;
...
...
host/driver_offline/conv_fwd_driver_offline.cpp
View file @
61487e0a
...
@@ -58,29 +58,29 @@ int main(int argc, char* argv[])
...
@@ -58,29 +58,29 @@ int main(int argc, char* argv[])
exit
(
1
);
exit
(
1
);
}
}
const
ConvTensorLayout
layout
=
static_cast
<
ConvTensorLayout
>
(
a
toi
(
argv
[
1
]));
const
ConvTensorLayout
layout
=
static_cast
<
ConvTensorLayout
>
(
std
::
s
toi
(
argv
[
1
]));
const
ConvForwardAlgo
algo
=
static_cast
<
ConvForwardAlgo
>
(
a
toi
(
argv
[
2
]));
const
ConvForwardAlgo
algo
=
static_cast
<
ConvForwardAlgo
>
(
std
::
s
toi
(
argv
[
2
]));
const
bool
do_verification
=
a
toi
(
argv
[
3
]);
const
bool
do_verification
=
std
::
s
toi
(
argv
[
3
]);
const
int
init_method
=
a
toi
(
argv
[
4
]);
const
int
init_method
=
std
::
s
toi
(
argv
[
4
]);
const
bool
do_log
=
a
toi
(
argv
[
5
]);
const
bool
do_log
=
std
::
s
toi
(
argv
[
5
]);
const
int
nrepeat
=
a
toi
(
argv
[
6
]);
const
int
nrepeat
=
std
::
s
toi
(
argv
[
6
]);
const
index_t
N
=
a
toi
(
argv
[
7
]);
const
index_t
N
=
std
::
s
toi
(
argv
[
7
]);
const
index_t
K
=
a
toi
(
argv
[
8
]);
const
index_t
K
=
std
::
s
toi
(
argv
[
8
]);
const
index_t
C
=
a
toi
(
argv
[
9
]);
const
index_t
C
=
std
::
s
toi
(
argv
[
9
]);
const
index_t
Y
=
a
toi
(
argv
[
10
]);
const
index_t
Y
=
std
::
s
toi
(
argv
[
10
]);
const
index_t
X
=
a
toi
(
argv
[
11
]);
const
index_t
X
=
std
::
s
toi
(
argv
[
11
]);
const
index_t
Hi
=
a
toi
(
argv
[
12
]);
const
index_t
Hi
=
std
::
s
toi
(
argv
[
12
]);
const
index_t
Wi
=
a
toi
(
argv
[
13
]);
const
index_t
Wi
=
std
::
s
toi
(
argv
[
13
]);
const
index_t
conv_stride_h
=
a
toi
(
argv
[
14
]);
const
index_t
conv_stride_h
=
std
::
s
toi
(
argv
[
14
]);
const
index_t
conv_stride_w
=
a
toi
(
argv
[
15
]);
const
index_t
conv_stride_w
=
std
::
s
toi
(
argv
[
15
]);
const
index_t
conv_dilation_h
=
a
toi
(
argv
[
16
]);
const
index_t
conv_dilation_h
=
std
::
s
toi
(
argv
[
16
]);
const
index_t
conv_dilation_w
=
a
toi
(
argv
[
17
]);
const
index_t
conv_dilation_w
=
std
::
s
toi
(
argv
[
17
]);
const
index_t
in_left_pad_h
=
a
toi
(
argv
[
18
]);
const
index_t
in_left_pad_h
=
std
::
s
toi
(
argv
[
18
]);
const
index_t
in_left_pad_w
=
a
toi
(
argv
[
19
]);
const
index_t
in_left_pad_w
=
std
::
s
toi
(
argv
[
19
]);
const
index_t
in_right_pad_h
=
a
toi
(
argv
[
20
]);
const
index_t
in_right_pad_h
=
std
::
s
toi
(
argv
[
20
]);
const
index_t
in_right_pad_w
=
a
toi
(
argv
[
21
]);
const
index_t
in_right_pad_w
=
std
::
s
toi
(
argv
[
21
]);
const
index_t
YEff
=
(
Y
-
1
)
*
conv_dilation_h
+
1
;
const
index_t
YEff
=
(
Y
-
1
)
*
conv_dilation_h
+
1
;
const
index_t
XEff
=
(
X
-
1
)
*
conv_dilation_w
+
1
;
const
index_t
XEff
=
(
X
-
1
)
*
conv_dilation_w
+
1
;
...
@@ -95,12 +95,12 @@ int main(int argc, char* argv[])
...
@@ -95,12 +95,12 @@ int main(int argc, char* argv[])
exit
(
1
);
exit
(
1
);
}
}
const
ConvTensorLayout
layout
=
static_cast
<
ConvTensorLayout
>
(
a
toi
(
argv
[
1
]));
const
ConvTensorLayout
layout
=
static_cast
<
ConvTensorLayout
>
(
std
::
s
toi
(
argv
[
1
]));
const
ConvForwardAlgo
algo
=
static_cast
<
ConvForwardAlgo
>
(
a
toi
(
argv
[
2
]));
const
ConvForwardAlgo
algo
=
static_cast
<
ConvForwardAlgo
>
(
std
::
s
toi
(
argv
[
2
]));
const
bool
do_verification
=
a
toi
(
argv
[
3
]);
const
bool
do_verification
=
std
::
s
toi
(
argv
[
3
]);
const
int
init_method
=
a
toi
(
argv
[
4
]);
const
int
init_method
=
std
::
s
toi
(
argv
[
4
]);
const
bool
do_log
=
a
toi
(
argv
[
5
]);
const
bool
do_log
=
std
::
s
toi
(
argv
[
5
]);
const
int
nrepeat
=
a
toi
(
argv
[
6
]);
const
int
nrepeat
=
std
::
s
toi
(
argv
[
6
]);
constexpr
index_t
N
=
128
;
constexpr
index_t
N
=
128
;
constexpr
index_t
C
=
192
;
constexpr
index_t
C
=
192
;
...
...
gaoqiong
@gaoqiong
mentioned in commit
dfb80c4e
·
Dec 05, 2023
mentioned in commit
dfb80c4e
mentioned in commit dfb80c4e39ec7b304c3ebc88bab2a204bc4906b9
Toggle commit list
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