Code Monkey home page Code Monkey logo

Comments (4)

deadeyegoodwin avatar deadeyegoodwin commented on May 16, 2024

The UFF file itself is not a TRT plan. You need to import the UFF file into TRT and from that generate a plan. You can then use that plan file in your model store. I think this sample shows what you are trying to do: https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html#mnist_uff_sample

from server.

pwlazy avatar pwlazy commented on May 16, 2024

thanks! it works by serializing the engine

from server.

ivankxt avatar ivankxt commented on May 16, 2024

The UFF file itself is not a TRT plan. You need to import the UFF file into TRT and from that generate a plan. You can then use that plan file in your model store. I think this sample shows what you are trying to do: https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html#mnist_uff_sample

We got the error when transforming UFF File to TensorRT Engine (TensorRT 5.0.2.6):
"[TensorRT] ERROR: UFFParser: Parser error: add: The input to the Scale Layer is required to have a minimum of 3 dimensions."
our model details as:
input nodes ==:
[name: "Placeholder"
op: "Placeholder"
attr {
key: "_output_shapes"
value {
list {
shape {
dim {
size: -1
}
dim {
size: 1000
}
}
}
}
}

output nodes ==:
[name: "add"
op: "Add"
input: "MatMul_2"
input: "b"
attr {
key: "T"
value {
type: DT_FLOAT
}
}
attr {
key: "_output_shapes"
value {
list {
shape {
dim {
size: -1
}
dim {
size: 2
}
}
}
}
}
]

from server.

deadeyegoodwin avatar deadeyegoodwin commented on May 16, 2024

UFF expects tensors in the network to be 3D. There will be some documentation on this limitation in the (future) 5.1 release of TensorRT.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.