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

Thank you #1

Open
Msameim181 opened this issue Oct 10, 2022 · 0 comments
Open

Thank you #1

Msameim181 opened this issue Oct 10, 2022 · 0 comments

Comments

@Msameim181
Copy link

Thank you very much for your hint.

This needs a little adjustment: out[np.newaxis]

trt_outs = do_inference(context=self.context, bindings=self.bindings, inputs=self.inputs,
                                outputs=self.outputs, stream=self.stream)
net_outs = []
reshape_list = [1, 4, 10]  # reshape 第二位的数
k = 0
i = 0
while len(net_outs) < 9:     
    out = trt_outs[i]
    out = out.reshape(out.shape[0]//reshape_list[k],reshape_list[k])
    net_outs.append(out[np.newaxis])
    i += 3
    if i >8:
        k += 1
        i = k     
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