Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensor str #5783

Merged
merged 254 commits into from
Aug 14, 2021
Merged

Tensor str #5783

merged 254 commits into from
Aug 14, 2021

Conversation

liufengwei0103
Copy link
Contributor

@liufengwei0103 liufengwei0103 commented Aug 7, 2021

Tensor str

效果图:
int 类型:
截屏2021-08-09 下午7 22 30
int mode(val == np.ceil(val)),科学计数法:
截屏2021-08-09 下午7 24 03
int mode, 非科学计数法:
截屏2021-08-09 下午7 24 26
浮点类型:
截屏2021-08-09 下午7 24 45
浮点类型,科学计数法:
截屏2021-08-09 下午7 25 14
压缩数据形式:
截屏2021-08-09 下午7 27 21
consistent tensor打印(暂时不能打印数据):
截屏2021-08-11 下午2 45 39
local tensor以及它的meta打印:
截屏2021-08-11 下午2 31 42
consistent tensor以及meta打印:
截屏2021-08-11 下午2 57 23

@strint

…support_tensor_to/to_local

Conflicts:
	oneflow/core/framework/tensor.h
…support_tensor_to/to_local

Conflicts:
	oneflow/core/framework/op_expr.cpp
	oneflow/core/framework/tensor.h
…support_tensor_to/to_local

Conflicts:
	oneflow/core/framework/op_interpreter.h
…support_tensor_to/to_local

Conflicts:
	oneflow/api/python/symbol/sbp_symbol.cpp
…support_tensor_to/to_local

Conflicts:
	oneflow/api/python/framework/op_expr.cpp
	oneflow/api/python/framework/tensor.cpp
	oneflow/core/framework/op_expr.h
…support_tensor_to/to_local

Conflicts:
	oneflow/api/python/framework/tensor.cpp
@oneflow-ci-bot oneflow-ci-bot self-requested a review August 13, 2021 12:07
@github-actions
Copy link
Contributor

CI failed, removing label automerge

@oneflow-ci-bot oneflow-ci-bot removed their request for review August 13, 2021 14:51
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot August 14, 2021 03:02
@wyg1997
Copy link
Contributor

wyg1997 commented Aug 14, 2021

好像新合进去一批doctest又出问题了,需要重新测一下Module下所有doctest

@oneflow-ci-bot oneflow-ci-bot self-requested a review August 14, 2021 07:25
@github-actions
Copy link
Contributor

Speed stats:
GPU Name: GeForce GTX 1080 

PyTorch resnet50 time: 140.7ms (= 7035.6ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 128.4ms (= 6420.1ms / 50, input_shape=[16, 3, 224, 224], backward is enabled)
Relative speed: 1.10 (= 140.7ms / 128.4ms)

PyTorch resnet50 time: 83.9ms (= 4193.6ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 74.6ms (= 3729.5ms / 50, input_shape=[8, 3, 224, 224], backward is enabled)
Relative speed: 1.12 (= 83.9ms / 74.6ms)

PyTorch resnet50 time: 55.9ms (= 2796.0ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 47.4ms (= 2368.0ms / 50, input_shape=[4, 3, 224, 224], backward is enabled)
Relative speed: 1.18 (= 55.9ms / 47.4ms)

PyTorch resnet50 time: 49.1ms (= 2454.3ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 40.5ms (= 2025.4ms / 50, input_shape=[2, 3, 224, 224], backward is enabled)
Relative speed: 1.21 (= 49.1ms / 40.5ms)

PyTorch resnet50 time: 42.6ms (= 2127.8ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
OneFlow resnet50 time: 41.2ms (= 2059.5ms / 50, input_shape=[1, 3, 224, 224], backward is enabled)
Relative speed: 1.03 (= 42.6ms / 41.2ms)

@oneflow-ci-bot oneflow-ci-bot removed their request for review August 14, 2021 08:49
@oneflow-ci-bot oneflow-ci-bot merged commit 713d30e into master Aug 14, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the tensor_str branch August 14, 2021 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants