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

jittor.nn.MaxPool2d的padding特殊值导致算子无法编译 #451

Open
PhyllisJi opened this issue Jun 16, 2023 · 0 comments
Open

jittor.nn.MaxPool2d的padding特殊值导致算子无法编译 #451

PhyllisJi opened this issue Jun 16, 2023 · 0 comments

Comments

@PhyllisJi
Copy link

PhyllisJi commented Jun 16, 2023

Describe the bug

当MaxPool2d的参数padding设为-1时,预期层定义时计图会通过断言或其他方式拒绝该参数,但是MaxPool2d接受了该参数并成功定义,最终导致计算时算子无法编译、计图框架崩溃

Full Log

Types of your inputs are:
= Var, self
The function declarations are:inline DataView data()
Failed reason:[f 0615 14:44:51.32800G 24 parallel_compiler.cc:330] Error happend during compilation:
[Error] source file Location:C:\Users\90768\.cache\jittor\jt1.3.7\cL\py3.10.11\Windows-10-10.x9b\13thGenInteLRCx83\defa ult\cu11.2.67\jit\code_IN_SIZE_1_in0_dim_4_in0_type_float32  OUT_SIZE 1  out0_dim_4  out0_tvpe float32  H__hash 640b 3e20788b1781_op.cc
Compile operator(1/2)failed:0p(9:1:1:11:11:01:s0,code->10)
Reason:【f 0615 14:44:51.328000 24 Log.cc:608】 Check failed ret(2)== 0(G) Run cmd failed: "C:\Users\90768\.cache\jittor \msvc\Vc\_\_\_\_\_\bin\cl.exe" "C:\Users\90768\.cache\jittor\jt1.3.7\cl\py3.10.11\Windows-10-10.x9b\13thGenInteLRCx83\de fault\cu11.2.67\jit\code__IN_SIZE_1_in0_dim_4_in0_type_float32__oUT_STZE_1_out0_dim_4_out0_tvpefloat32H_hash64 Ob3e20788b1781op.cc"-Fe:"C:\Users\90768\.cache\jittor\it13.7\cl\py3.10.11\Windows-10-10.x9b\13thGenTntelRCx83\defaul t\cu11.2.67\jit\code_IN_SIZE_1_in0_dim_4_in0_type_float32__OUT_SIZE 1 out0_dim_4_out0_type float32__H__hash_640b3e
-LD  -EHa -MD -utf-8  -nologo -I"C:\Users\90768\.cache\jittor\msvc\VC\include" -I"
20788b1781_op.dLL"    -std:c++17
C:\Users\90768\.cache\jittor\msvc\win10_kits\include\ucrt"-I"C:\Users\90768\.cache\jittor\msvc\win10_kits\include\share d"-I"C:\Users\90768\.cache\jittor\msvc\win10_kits\include\un"-DNOMINMAX-I"c:\users\90768\appdata\local\programs\pyt hon\python31e\Lib\site-packages\jittor\src"-I"c:\users\90768\appdata\Local\programs\python\python310\include"-DHAS_CUD A-DIS_CUDA-I'C:\Users\90768\.cache\jittor\jtcuda\cuda11.2_cudnn8_win\include'-I"c:\users\90768\appdata\local\programs \python\python310\Lib\site-packages\jittor\extern\cuda\inc"  -I'C:\Users\90768\,cache\jittor\it1.3.7\cl\pv3.10.11\Windo
-Ofast  -Link -LIBPATH: "c:\users\90768\appdata\Local\programs\pytho ws-10-10.x9b\13thGenInteLRCx83\default\cu11.2.67"
n\python310\Libs" python310.Lib -LIBPATH:"C:\Users\90768\.cache\jittor\msvc\vc\Lib"-LIBPATH:"C:\Users\90768\.cache\jitt or\msvc\win10_kits\Lib\um\x64'-LIBPATH:\\\Users\90768\.cache\jittor\msvc\win10_kits\Lib\ucrt\x64\cudart.Lib-LIBPATH:"C:\Users\90768\.cache\jittor\itcuda\cuda11.2cudnn8win\Lib\x64'-LIBPATH:"C:\Users\90768\.cache\jittor\itcuda\cuda11.2 _cudnn8_win\bin"-LIBPATH:"C:\Users\90768\.cache\jittor\jt1.3.7\cl\py3.10.11\Windows-10-10.x9b\13thGenIntelRCx83\default \cu11.2.67"-LTBPATH:"C:\Users\90768\.cache\jittor\it1.3.7\cL\pv3.10.11\Windows-10-10.x9b\13thGenIntelRCx83\default" "ji
-EXPORT:"?jit_run@Code0p@jittor@@qEAAXXZ"
t_utils_core.cp310-win_amd64'.Lib "jittor_core.cp310-win_and64'.Lib

Minimal Reproduce

p = jittor.nn.MaxPool2d(3, None, -1)
x  =  jittor.randn(3, 3, 32, 32)
y = p(x)

Expected behavior

预期层定义时计图会通过断言或其他方式拒绝该参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant