pytorch / pytorch/TensorRT

How to set the input when compiling model for non-image input?

Open
#2,558 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question story: Documentation & Examples
Dominant language
Python
Stars
3k
Forks
410
Avg merge
3d 18h
Merged PRs (30d)
78

Description

Hi, I have trained a model whose input is a set of 3D points with a shape Nx3, N is not a fixed number. In this case, how to set the input during compiling my model?

For image, the input shape is like this:

inputs = [torch.randn((1, 3, 224, 224)).to("cuda").half()]

What if for my case? Thank you!

### Tasks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named in the issue. Start by locating the compiler's input-specification documentation and existing examples for non-image or dynamic-shape inputs. Done means explaining how to compile a model whose input has shape Nx3 with a variable N.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.