fuse cast scalar_mul scalar_mul_by_tensor (#4730)
* fused_cast_scale_pass fuse scalar_mul * test case * refine * fix Co-authored-by:Juncheng <liujuncheng1022@gmail.com> Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Showing
- oneflow/core/job_rewriter/fuse_cast_scale_pass.cpp 35 additions, 8 deletionsoneflow/core/job_rewriter/fuse_cast_scale_pass.cpp
- oneflow/python/test/ops/test_fuse_cast_scale.py 21 additions, 6 deletionsoneflow/python/test/ops/test_fuse_cast_scale.py
- oneflow/user/kernels/fused_cast_scale_kernel.cpp 4 additions, 3 deletionsoneflow/user/kernels/fused_cast_scale_kernel.cpp
- oneflow/user/kernels/fused_cast_scale_kernel.cu 19 additions, 15 deletionsoneflow/user/kernels/fused_cast_scale_kernel.cu
- oneflow/user/ops/fused_cast_scale_op.cpp 12 additions, 9 deletionsoneflow/user/ops/fused_cast_scale_op.cpp
Please register or sign in to comment