Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210130133
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210130133
Commits
53b667b5
Commit
53b667b5
authored
6 years ago
by
willzhang4a58
Browse files
Options
Downloads
Patches
Plain Diff
alexnet benchmark use imagenet_227
parent
c6ac67d5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
benchmark/alexnet/report.md
+3
-3
3 additions, 3 deletions
benchmark/alexnet/report.md
benchmark/alexnet/train.net
+1
-7
1 addition, 7 deletions
benchmark/alexnet/train.net
oneflow/of_submit
+13
-1
13 additions, 1 deletion
oneflow/of_submit
with
17 additions
and
11 deletions
benchmark/alexnet/report.md
+
3
−
3
View file @
53b667b5
...
...
@@ -2,6 +2,6 @@ batch_size: 1024
gpu num | time (one batch)
:-------| :-------------
1 | 5
38
ms
2 | 2
75
ms
4 | 2
14
ms
1 | 5
41
ms
2 | 2
82
ms
4 | 2
07
ms
This diff is collapsed.
Click to expand it.
benchmark/alexnet/train.net
+
1
−
7
View file @
53b667b5
op {
name: "decode"
decode_ofrecord_conf {
data_dir: "/dataset/imagenet/train/32"
data_dir: "/dataset/imagenet
_227
/train/32
/
"
blob {
name: "encoded"
data_type: kFloat
...
...
@@ -12,12 +12,6 @@ op {
}
encode_case {
jpeg {
preprocess {
resize {
width: 227
height: 227
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
oneflow/of_submit
+
13
−
1
View file @
53b667b5
...
...
@@ -55,6 +55,16 @@ def SubmitJob(job_conf, oneflow_path, workdir):
for
machine
in
job_conf
.
resource
.
machine
:
SubmitJobToOneMachine
(
machine
,
job_conf
,
oneflow_path
,
workdir
)
def
FindOneflowPathInEnv
():
for
path_dir
in
os
.
getenv
(
"
PATH
"
).
split
(
"
:
"
):
try
:
filenames
=
os
.
listdir
(
path_dir
)
if
"
oneflow
"
in
filenames
:
return
os
.
path
.
join
(
path_dir
,
"
oneflow
"
)
except
os
.
error
:
pass
return
""
if
__name__
==
"
__main__
"
:
if
len
(
sys
.
argv
)
==
1
:
PrintHelpMessage
()
...
...
@@ -68,7 +78,9 @@ if __name__ == "__main__":
else
:
PrintHelpMessage
()
oneflow_path
=
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
oneflow_path
))
assert
os
.
path
.
isfile
(
oneflow_path
)
if
os
.
path
.
isfile
(
oneflow_path
)
==
False
:
oneflow_path
=
FindOneflowPathInEnv
()
assert
os
.
path
.
isfile
(
oneflow_path
)
workdir
=
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
workdir
))
job_conf_path
=
sys
.
argv
[
-
1
]
if
os
.
path
.
isfile
(
job_conf_path
)
==
False
:
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment