Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Oneflow-Inc
OneFlow-Benchmark
提交
5ea946fb
O
OneFlow-Benchmark
项目概览
Oneflow-Inc
/
OneFlow-Benchmark
上一次同步 接近 3 年
通知
1
Star
92
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OneFlow-Benchmark
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
5ea946fb
编写于
7月 21, 2021
作者:
qq_22305325
提交者:
GitHub
7月 21, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #208 from Oneflow-Inc/dev_import_oneflow_single_client
Replace import oneflow with single_client
上级
3c73a8b7
ad156565
变更
35
隐藏空白更改
内联
并排
Showing
35 changed file
with
39 addition
and
43 deletion
+39
-43
Classification/cnns/alexnet_model.py
Classification/cnns/alexnet_model.py
+1
-1
Classification/cnns/inception_model.py
Classification/cnns/inception_model.py
+1
-1
Classification/cnns/job_function_util.py
Classification/cnns/job_function_util.py
+1
-1
Classification/cnns/mobilenet_v2_model.py
Classification/cnns/mobilenet_v2_model.py
+1
-1
Classification/cnns/of_cnn_evaluate.py
Classification/cnns/of_cnn_evaluate.py
+1
-1
Classification/cnns/of_cnn_inference.py
Classification/cnns/of_cnn_inference.py
+2
-2
Classification/cnns/of_cnn_train_val.py
Classification/cnns/of_cnn_train_val.py
+1
-1
Classification/cnns/ofrecord_util.py
Classification/cnns/ofrecord_util.py
+1
-1
Classification/cnns/optimizer_util.py
Classification/cnns/optimizer_util.py
+1
-1
Classification/cnns/resnet_model.py
Classification/cnns/resnet_model.py
+1
-1
Classification/cnns/resnet_to_onnx.py
Classification/cnns/resnet_to_onnx.py
+2
-2
Classification/cnns/resnext_model.py
Classification/cnns/resnext_model.py
+1
-1
Classification/cnns/tools/imagenet_ofrecord.py
Classification/cnns/tools/imagenet_ofrecord.py
+1
-1
Classification/cnns/util.py
Classification/cnns/util.py
+1
-1
Classification/cnns/vgg_model.py
Classification/cnns/vgg_model.py
+1
-1
ClickThroughRate/WideDeepLearning/wdl_train_eval.py
ClickThroughRate/WideDeepLearning/wdl_train_eval.py
+1
-1
ClickThroughRate/WideDeepLearning/wdl_train_eval_test.py
ClickThroughRate/WideDeepLearning/wdl_train_eval_test.py
+1
-1
ClickThroughRate/WideDeepLearning/wdl_train_eval_with_hybrid_embd.py
...hRate/WideDeepLearning/wdl_train_eval_with_hybrid_embd.py
+1
-1
Generative/dcgan.py
Generative/dcgan.py
+1
-1
Generative/layers.py
Generative/layers.py
+1
-2
LanguageModeling/BERT/bert.py
LanguageModeling/BERT/bert.py
+2
-3
LanguageModeling/BERT/classifier.py
LanguageModeling/BERT/classifier.py
+1
-2
LanguageModeling/BERT/pretrain.py
LanguageModeling/BERT/pretrain.py
+2
-2
LanguageModeling/BERT/run_classifier.py
LanguageModeling/BERT/run_classifier.py
+1
-1
LanguageModeling/BERT/run_pretraining.py
LanguageModeling/BERT/run_pretraining.py
+1
-1
LanguageModeling/BERT/run_squad.py
LanguageModeling/BERT/run_squad.py
+1
-1
LanguageModeling/BERT/squad.py
LanguageModeling/BERT/squad.py
+1
-2
LanguageModeling/BERT/util.py
LanguageModeling/BERT/util.py
+1
-1
LanguageModeling/GPT/oneflow_gpt/data.py
LanguageModeling/GPT/oneflow_gpt/data.py
+1
-1
LanguageModeling/GPT/oneflow_gpt/distribute.py
LanguageModeling/GPT/oneflow_gpt/distribute.py
+1
-1
LanguageModeling/GPT/oneflow_gpt/model.py
LanguageModeling/GPT/oneflow_gpt/model.py
+1
-1
LanguageModeling/GPT/oneflow_gpt/optimizer.py
LanguageModeling/GPT/oneflow_gpt/optimizer.py
+1
-1
LanguageModeling/GPT/oneflow_gpt/snapshot.py
LanguageModeling/GPT/oneflow_gpt/snapshot.py
+1
-1
LanguageModeling/GPT/oneflow_gpt/training.py
LanguageModeling/GPT/oneflow_gpt/training.py
+1
-1
LanguageModeling/GPT/tasks/zeroshot_gpt/evaluate.py
LanguageModeling/GPT/tasks/zeroshot_gpt/evaluate.py
+1
-1
未找到文件。
Classification/cnns/alexnet_model.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
_get_kernel_initializer
(
data_format
=
"NCHW"
):
...
...
Classification/cnns/inception_model.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
_get_kernel_initializer
():
...
...
Classification/cnns/job_function_util.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
_default_config
(
args
):
...
...
Classification/cnns/mobilenet_v2_model.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
# ref : https://arxiv.org/pdf/1801.04381.pdf
# ref : https://github.com/liangfu/mxnet-mobilenet-v2/blob/master/symbols/mobilenetv2.py
...
...
Classification/cnns/of_cnn_evaluate.py
浏览文件 @
5ea946fb
...
...
@@ -28,7 +28,7 @@ configs.print_args(args)
from
util
import
Snapshot
,
InitNodes
,
Metric
import
ofrecord_util
from
job_function_util
import
get_train_config
,
get_val_config
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
vgg_model
import
resnet_model
import
resnext_model
...
...
Classification/cnns/of_cnn_inference.py
浏览文件 @
5ea946fb
...
...
@@ -24,8 +24,8 @@ parser = configs.get_parser()
args
=
parser
.
parse_args
()
configs
.
print_args
(
args
)
import
oneflow
as
flow
import
oneflow.typing
as
tp
import
oneflow
.compatible.single_client
as
flow
import
oneflow.
compatible.single_client.
typing
as
tp
from
imagenet1000_clsidx_to_labels
import
clsidx_2_labels
import
resnet_model
...
...
Classification/cnns/of_cnn_train_val.py
浏览文件 @
5ea946fb
...
...
@@ -15,7 +15,7 @@ limitations under the License.
"""
import
os
import
math
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
ofrecord_util
import
optimizer_util
import
config
as
configs
...
...
Classification/cnns/ofrecord_util.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
add_ofrecord_args
(
parser
):
...
...
Classification/cnns/optimizer_util.py
浏览文件 @
5ea946fb
...
...
@@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
math
import
pprint
...
...
Classification/cnns/resnet_model.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
BLOCK_COUNTS
=
[
3
,
4
,
6
,
3
]
BLOCK_FILTERS
=
[
256
,
512
,
1024
,
2048
]
...
...
Classification/cnns/resnet_to_onnx.py
浏览文件 @
5ea946fb
...
...
@@ -18,8 +18,8 @@ import time
from
typing
import
Callable
,
Text
import
numpy
as
np
import
oneflow
as
flow
import
oneflow.typing
as
tp
import
oneflow
.compatible.single_client
as
flow
import
oneflow.
compatible.single_client.
typing
as
tp
import
onnx
import
onnxruntime
as
ort
...
...
Classification/cnns/resnext_model.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
collections
...
...
Classification/cnns/tools/imagenet_ofrecord.py
浏览文件 @
5ea946fb
...
...
@@ -104,7 +104,7 @@ import glob
import
numpy
as
np
import
six
import
cv2
import
oneflow.core.record.record_pb2
as
of_record
import
oneflow.co
mpatible.single_client.co
re.record.record_pb2
as
of_record
import
struct
"""
...
...
Classification/cnns/util.py
浏览文件 @
5ea946fb
...
...
@@ -19,7 +19,7 @@ import time
import
numpy
as
np
import
pandas
as
pd
from
datetime
import
datetime
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
InitNodes
(
args
):
...
...
Classification/cnns/vgg_model.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
_batch_norm
(
inputs
,
name
=
None
,
trainable
=
True
,
training
=
True
,
data_format
=
"NCHW"
):
...
...
ClickThroughRate/WideDeepLearning/wdl_train_eval.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
argparse
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
datetime
import
os
import
glob
...
...
ClickThroughRate/WideDeepLearning/wdl_train_eval_test.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
argparse
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
datetime
import
os
import
glob
...
...
ClickThroughRate/WideDeepLearning/wdl_train_eval_with_hybrid_embd.py
浏览文件 @
5ea946fb
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
import
argparse
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
datetime
import
os
import
glob
...
...
Generative/dcgan.py
浏览文件 @
5ea946fb
...
...
@@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
numpy
as
np
import
imageio
import
glob
...
...
Generative/layers.py
浏览文件 @
5ea946fb
...
...
@@ -13,8 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow.python.framework.distribute
as
distribute_util
import
oneflow.compatible.single_client
as
flow
def
get_const_initializer
():
return
flow
.
constant_initializer
(
0.002
)
...
...
LanguageModeling/BERT/bert.py
浏览文件 @
5ea946fb
...
...
@@ -13,9 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow.core.common.data_type_pb2
as
data_type_util
import
oneflow.core.operator.op_conf_pb2
as
op_conf_util
import
oneflow.compatible.single_client
as
flow
import
oneflow.compatible.single_client.core.operator.op_conf_pb2
as
op_conf_util
import
math
class
BertBackbone
(
object
):
...
...
LanguageModeling/BERT/classifier.py
浏览文件 @
5ea946fb
...
...
@@ -13,9 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
bert
as
bert_util
import
oneflow.core.operator.op_conf_pb2
as
op_conf_util
def
GlueBERT
(
...
...
LanguageModeling/BERT/pretrain.py
浏览文件 @
5ea946fb
...
...
@@ -13,9 +13,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
bert
as
bert_util
import
oneflow.core.operator.op_conf_pb2
as
op_conf_util
import
oneflow.co
mpatible.single_client.co
re.operator.op_conf_pb2
as
op_conf_util
def
PreTrain
(
...
...
LanguageModeling/BERT/run_classifier.py
浏览文件 @
5ea946fb
...
...
@@ -18,7 +18,7 @@ import os
import
math
import
numpy
as
np
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
from
classifier
import
GlueBERT
from
util
import
Snapshot
,
InitNodes
,
Metric
,
CreateOptimizer
,
GetFunctionConfig
...
...
LanguageModeling/BERT/run_pretraining.py
浏览文件 @
5ea946fb
...
...
@@ -19,7 +19,7 @@ import argparse
from
datetime
import
datetime
import
config
as
configs
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
from
pretrain
import
PreTrain
from
util
import
Snapshot
,
InitNodes
,
Metric
,
CreateOptimizer
,
GetFunctionConfig
...
...
LanguageModeling/BERT/run_squad.py
浏览文件 @
5ea946fb
...
...
@@ -21,7 +21,7 @@ from datetime import datetime
import
config
as
configs
from
config
import
str2bool
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
from
squad
import
SQuAD
from
util
import
Snapshot
,
InitNodes
,
Metric
,
CreateOptimizer
,
GetFunctionConfig
...
...
LanguageModeling/BERT/squad.py
浏览文件 @
5ea946fb
...
...
@@ -13,9 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
import
bert
as
bert_util
import
oneflow.core.operator.op_conf_pb2
as
op_conf_util
def
SQuAD
(
...
...
LanguageModeling/BERT/util.py
浏览文件 @
5ea946fb
...
...
@@ -20,7 +20,7 @@ import numpy as np
from
collections
import
OrderedDict
import
pandas
as
pd
from
datetime
import
datetime
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
InitNodes
(
args
):
...
...
LanguageModeling/GPT/oneflow_gpt/data.py
浏览文件 @
5ea946fb
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
from
oneflow_gpt
import
distribute
from
oneflow_gpt.config
import
get_args
...
...
LanguageModeling/GPT/oneflow_gpt/distribute.py
浏览文件 @
5ea946fb
import
contextlib
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
from
oneflow_gpt.config
import
get_args
...
...
LanguageModeling/GPT/oneflow_gpt/model.py
浏览文件 @
5ea946fb
import
math
import
numpy
as
np
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
from
oneflow_gpt
import
distribute
from
oneflow_gpt.config
import
get_args
...
...
LanguageModeling/GPT/oneflow_gpt/optimizer.py
浏览文件 @
5ea946fb
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
get_lr_scheduler
(
args
):
...
...
LanguageModeling/GPT/oneflow_gpt/snapshot.py
浏览文件 @
5ea946fb
...
...
@@ -2,7 +2,7 @@ import os
import
re
import
glob
import
operator
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
class
Snapshot
(
object
):
...
...
LanguageModeling/GPT/oneflow_gpt/training.py
浏览文件 @
5ea946fb
...
...
@@ -6,7 +6,7 @@ sys.path.append(
)
import
numpy
as
np
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
from
oneflow_gpt.config
import
get_args
from
oneflow_gpt
import
distribute
...
...
LanguageModeling/GPT/tasks/zeroshot_gpt/evaluate.py
浏览文件 @
5ea946fb
...
...
@@ -10,7 +10,7 @@ from oneflow_gpt.model import GPTModel, ParallelSparseSoftmaxCrossEntropyLoss
from
oneflow_gpt
import
util
from
.datasets
import
build_dataset
import
numpy
as
np
import
oneflow
as
flow
import
oneflow
.compatible.single_client
as
flow
def
_init_env
(
args
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录