Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
watcag-public
fpga-syspart
Commits
fcc32e83
Commit
fcc32e83
authored
Jun 01, 2020
by
LongChan
Browse files
AGO square dataset
parent
6bc1f282
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
optimization_algo/data_source/AlphaGoZero_square_mem_bound.csv
0 → 100644
View file @
fcc32e83
This diff is collapsed.
Click to expand it.
scaleSim/csv_reorganizer.py
View file @
fcc32e83
...
@@ -27,12 +27,13 @@ def organize(cycle_csv_path, detail_csv_path):
...
@@ -27,12 +27,13 @@ def organize(cycle_csv_path, detail_csv_path):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
path
=
sys
.
argv
[
1
]
path
=
sys
.
argv
[
1
]
runname
=
sys
.
argv
[
2
]
runname
=
sys
.
argv
[
2
]
print
(
sys
.
argv
)
out_path
=
sys
.
argv
[
3
]
out_path
=
sys
.
argv
[
3
]
maxsize
=
int
(
sys
.
argv
[
4
])
maxsize
=
int
(
sys
.
argv
[
4
])
square
=
bool
(
sys
.
argv
[
5
])
square
=
bool
(
sys
.
argv
[
5
])
frames
=
[]
frames
=
[]
dimension_found
=
[]
dimension_found
=
[]
if
square
:
if
square
:
for
i
in
range
(
maxsize
):
for
i
in
range
(
maxsize
):
demension
=
str
(
i
+
1
)
+
"x"
+
str
(
i
+
1
)
demension
=
str
(
i
+
1
)
+
"x"
+
str
(
i
+
1
)
...
...
scaleSim/generate_final_square_csv.sh
View file @
fcc32e83
#!/bin/bash
#!/bin/bash
# ./generate_final_square_csv.sh yolo_tiny ../optimization_algo/yolo_tiny_mem_bound.csv 960
# ./generate_final_square_csv.sh AlphaGoZero ../optimization_algo/data_source/AlphaGoZero_square_mem_bound.csv 960
if
[
"
$1
"
!=
""
]
;
then
if
[
"
$1
"
!=
""
]
;
then
# echo $1
# echo $2
# echo $3
python3 csv_reorganizer.py outputs/
$1
$2
$3
True
python3 csv_reorganizer.py outputs/
$1
$2
$3
True
else
else
echo
"Positional parameter 1 is empty"
echo
"Positional parameter 1 is empty"
...
...
scaleSim/scale.py
View file @
fcc32e83
...
@@ -279,7 +279,7 @@ class scale:
...
@@ -279,7 +279,7 @@ class scale:
print
(
all_arr_dim_list
)
print
(
all_arr_dim_list
)
pool
=
Pool
(
processes
=
8
)
pool
=
Pool
(
processes
=
12
)
for
pro
in
pool
.
imap_unordered
(
self
.
run_mp_once
,
all_arr_dim_list
):
for
pro
in
pool
.
imap_unordered
(
self
.
run_mp_once
,
all_arr_dim_list
):
self
.
run_name
=
net_name
+
"_"
+
self
.
dataflow
+
"_"
+
str
(
pro
[
0
])
+
"x"
+
str
(
pro
[
1
])
self
.
run_name
=
net_name
+
"_"
+
self
.
dataflow
+
"_"
+
str
(
pro
[
0
])
+
"x"
+
str
(
pro
[
1
])
self
.
cleanup
(
pro
)
self
.
cleanup
(
pro
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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