Skip to main content

vision mlp model based on oneflow

Project description

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为负数的情况

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_mlp_oneflow-0.0.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

vision_mlp_oneflow-0.0.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file vision_mlp_oneflow-0.0.2.tar.gz.

File metadata

  • Download URL: vision_mlp_oneflow-0.0.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for vision_mlp_oneflow-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5dbdfe3aa364e27371b804ee72d11a81e575cad30589a2aae4f9f9b4ecceb8ec
MD5 3aaa8a588190f8605df1c7065d7c19a7
BLAKE2b-256 e1fc505960a0e97a7f02cf8538775f7d156e9f7927ceab66bf9f021c72d8903e

See more details on using hashes here.

File details

Details for the file vision_mlp_oneflow-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: vision_mlp_oneflow-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for vision_mlp_oneflow-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a482cc628e6e486f5e89f0053d61df8a0ee5bf2444eea57079a708c637d448b
MD5 d87081d3060bb73c8102fc0fa5b5792a
BLAKE2b-256 f4f619d612ce126f24c1f5e06e19db45ea079d2497a1768035d0b7b9d70a7d31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page