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

Error specifying dynamic shape #307

Open
leon0514 opened this issue Jan 10, 2025 · 0 comments
Open

Error specifying dynamic shape #307

leon0514 opened this issue Jan 10, 2025 · 0 comments

Comments

@leon0514
Copy link

CUDA-BEVFusion/src/common/tensorrt.cpp

virtual bool set_run_dims(int ibinding, const std::vector &dims) override {
nvinfer1::Dims d;
memcpy(d.d, dims.data(), sizeof(int) * dims.size());
d.nbDims = dims.size();
auto engine = this->context_->engine_;
auto context = this->context_->context_;
return context->setInputShape(engine->getIOTensorName(ibinding), d);
}

The data in nvinfer1::Dims is of type int64_t, which gives an error in memcpy.

@hopef

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