-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Internal Error ((Unnamed Layer* 15) [Slice]: ISliceLayer size elements must be non-negative, but size on axis 0 is not when running builder->buildSerializedNetwork(*network, *config) on GPU 3070 #3480
Comments
We don't support negative slice size? @ttyio |
But,if I use dynamic shape input,the slice size must be negative.In this case,what should I do?
…---Original---
From: "Zero ***@***.***>
Date: Wed, Nov 22, 2023 19:55 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [NVIDIA/TensorRT] Internal Error ((Unnamed Layer* 15) [Slice]:ISliceLayer size elements must be non-negative, but size on axis 0 is not whenrunning builder->buildSerializedNetwork(*network, *config) on GPU 3070 (Issue#3480)
We don't support negative slice size? @ttyio
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi @Richard-Shasen , we support dynamic shape for all the To use dynamic shape in trt, we should specify the dynamic shape dim to |
Thank You! @ttyio I use function getDimsions() to print the shape of slice layer,it is{-1,32,160,160,0,0,0,0},they are not smaller than -1. |
@Richard-Shasen this batch dim |
yes!-1 is computed from other layer. the profile: middle network: C2F module: I define a function to slice tensor dynamically: nvinfer1::Weights subSliceWeight{ nvinfer1::DataType::kINT32,subSliceValue,size }; so,-1 is computed from network->addElementWise() |
I have the same problem, have you solved it? |
Description
Environment
TensorRT Version:TensorRT 8.6
NVIDIA GPU:3070
NVIDIA Driver Version:511.23
CUDA Version:11.6
CUDNN Version:
Operating System:windows11
Python Version (if applicable):
Tensorflow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if so, version):
Relevant Files
Model link:
Steps To Reproduce
Commands or scripts:
Have you tried the latest release?:
Can this model run on other frameworks? For example run ONNX model with ONNXRuntime (
polygraphy run <model.onnx> --onnxrt
):The text was updated successfully, but these errors were encountered: