• Deep Patel's avatar
    Suppress ONNX export trace warning (#5437) · 33643799
    Deep Patel 提交于
    Checking for `onnx_dynamic` first should suppress the warning:
    
    ```log
    TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
      if self.grid[i].shape[2:4] != x[i].shape[2:4] or self.onnx_dynamic
    ```
    33643799
名称
最后提交
最后更新
.github 正在载入提交数据...
data 正在载入提交数据...
models 正在载入提交数据...
utils 正在载入提交数据...
.dockerignore 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.pre-commit-config.yaml 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
Dockerfile 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
detect.py 正在载入提交数据...
export.py 正在载入提交数据...
hubconf.py 正在载入提交数据...
requirements.txt 正在载入提交数据...
setup.cfg 正在载入提交数据...
train.py 正在载入提交数据...
tutorial.ipynb 正在载入提交数据...
val.py 正在载入提交数据...