Skip to main content

vision-mlp-oneflow

Vision MLP Models Based on OneFlow

TODO LIST

复现过程中遇到的问题

  • tensor.chunk()方法没有和torch.tensor.chunk()对齐, 在输入的dim参数为负数的时候未作判断, 并且整体功能还变成了repeat操作
  • 缺少tensor.floor_()方法, 只能用tensor = tensor.floor()替代
  • 缺少tensor.erfinv()方法及其inplace版本, 无法复现trunc_norm_
  • 缺少tensor.new_empty()方法
  • flow.shape返回的是oneflow._oneflow_internal.Size 无法和 tuple相加, 按以下方法使用会报错:
# oneflow里报错
x = flow.tensor(np.random.randn(1, 16, 512), dtype=flow.float32)
x.shape + (4, )
x.size() + (4, )
>>>TypeError: unsupported operand type(s) for +: 'oneflow._oneflow_internal.Size' and 'tuple'

# torch里不报错
x = torch.randn(1, 16, 512)
x.shape + (4, )
x.size() + (4, )
>>> torch.Size([1, 16, 512, 4])
  • tensor.gather()未具体判定输入的dim为负数的情况

Metadata

Release files for vision-mlp-oneflow 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vision-mlp-oneflow 0.0.2
File Size Uploaded
vision_mlp_oneflow-0.0.2.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vision-mlp-oneflow 0.0.2
File Interpreter ABI Platform
vision_mlp_oneflow-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.3 kB

Release files / vision_mlp_oneflow-0.0.2.tar.gz

Download URL vision_mlp_oneflow-0.0.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5dbdfe3aa364e27371b804ee72d11a81e575cad30589a2aae4f9f9b4ecceb8ec
BLAKE2b-256 checksum
How to use checksums
e1fc505960a0e97a7f02cf8538775f7d156e9f7927ceab66bf9f021c72d8903e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.13

Release files / vision_mlp_oneflow-0.0.2-py3-none-any.whl

Download URL vision_mlp_oneflow-0.0.2-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a482cc628e6e486f5e89f0053d61df8a0ee5bf2444eea57079a708c637d448b
BLAKE2b-256 checksum
How to use checksums
f4f619d612ce126f24c1f5e06e19db45ea079d2497a1768035d0b7b9d70a7d31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.13

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page