Jittor/jittor

Jittor Issue Submit Guideline

Jittor opened this issue · 0 comments

If you are submitting an issue for Jittor for the first time, we suggest you refer to this guide to ensure that the Jittor community can better serve you and resolve your issue as soon as possible.

Extract critical error information

The key error information of jittor will be marked in red font. You can put the key error information in the summary of the issue.

Provide error log

It is very important to provide a relatively complete error log. In addition to the error message, jittor will also output environment-related information when it is started. This information can help us better locate bugs for you. You can post it in the code block of the issue in the form of text or screenshot, such as the following:

└─[0] <git:(master aaf97d5✱✈) > python3 -m jittor.test.test_loss -k test_cross_entropy_weight_ignore
[i 0625 15:04:20.821867 92 compiler.py:869] Jittor(1.2.3.45) src: /home/cjld/new_jittor/jittor/python/jittor
[i 0625 15:04:20.825995 92 compiler.py:870] g++ at /usr/bin/g++(9.3.0)
[i 0625 15:04:20.826257 92 compiler.py:871] cache_path: /home/cjld/.cache/jittor/master/g++
[i 0625 15:04:20.929743 92 __init__.py:284] Found gdb(9.1) at /usr/bin/gdb.
[i 0625 15:04:20.938452 92 __init__.py:284] Found addr2line(2.34) at /usr/bin/addr2line.
[i 0625 15:04:20.957717 92 compiler.py:951] py_include: -I/usr/include/python3.8 -I/usr/include/python3.8
[i 0625 15:04:20.973205 92 compiler.py:953] extension_suffix: .cpython-38-x86_64-linux-gnu.so
[i 0625 15:04:21.167158 92 __init__.py:176] Total mem: 15.07GB, using 5 procs for compiling.
[i 0625 15:04:21.379417 92 jit_compiler.cc:21] Load cc_path: /usr/bin/g++
[i 0625 15:04:21.501976 92 compile_extern.py:444] mpicc not found, distribution disabled.
E
======================================================================
ERROR: test_cross_entropy_weight_ignore (__main__.TestLoss)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cjld/new_jittor/jittor/python/jittor/test/test_loss.py", line 96, in test_cross_entropy_weight_ignore
    print(jt_y[1,2,3])
  File "/home/cjld/new_jittor/jittor/python/jittor/contrib.py", line 191, in getitem
    return x.getitem(slices)
RuntimeError: Wrong inputs arguments, Please refer to examples(help(jt.getitem)).

Types of your inputs are:
 self   = Var,
 args   = (tuple, ),

The function declarations are:
 VarHolder* getitem(VarHolder* x,  VarSlices&& slices)

Failed reason:[f 0625 15:04:23.378801 92 getitem_op.cc:119] Check failed: v>=0 && v<in_shape_i  slice overflow,  1 not in [0,1)

----------------------------------------------------------------------
Ran 1 test in 0.889s

Or provide screenshots, so that the color information can be preserved:

image

If your complete log is very long, you can post the key parts in the issue and upload the complete log.

Provide minimal reproduce

If your error can be reproduced with very little code, such as a file or several lines of code, we very much hope that you can provide it, which can greatly facilitate debugging and improvement.

Keep in touch with us

Many issues may require several exchanges to resolve. Please keep in touch with us. We will reply to your issue as soon as possible. You may need your cooperation and help in the process. In addition, we also provide a variety of ways for you to quickly contact us, such as Jittor developer QQ group (761222083), WeChat account (randonlang), for some more complex problems, you can also debug through remote assistance, You are welcome to contact at any time.