Skip to content

Excuse me, can you tell me how to solve this problem? #13

@Joevaen

Description

@Joevaen

It's a project about hrnet from GITHUB without tensorrt.When i tried to change "output = model(input)" to tensorrt-inference, mistake occured.Can you tell me how to deal with it? Is this bug is from my wrong understandings about TRT or due to the version issue?Thanks a lot.

print(engine.get_binding_shape(0)) h_input = cuda.pagelocked_empty(trt.volume(engine.get_binding_shape(0)), dtype=trt.nptype(trt.float32)) h_output = cuda.pagelocked_empty(trt.volume(engine.get_binding_shape(1)), dtype=trt.nptype(trt.float32)) d_input = cuda.mem_alloc(h_input.nbytes) d_output = cuda.mem_alloc(h_output.nbytes) stream = cuda.Stream() context = engine.create_execution_context()

"get_binding_shape(0)" show bugs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions