• 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
名称
最后提交
最后更新
..
hub 正在载入提交数据...
__init__.py 正在载入提交数据...
common.py 正在载入提交数据...
experimental.py 正在载入提交数据...
tf.py 正在载入提交数据...
yolo.py 正在载入提交数据...
yolov5l.yaml 正在载入提交数据...
yolov5m.yaml 正在载入提交数据...
yolov5n.yaml 正在载入提交数据...
yolov5s.yaml 正在载入提交数据...
yolov5x.yaml 正在载入提交数据...