backend/`TensorRTEngineOp`
Created by: Superjomn
Some primary ideas, the interface of the TensorRTEngineOp
- Op
- inputs
- outputs
- attributes
- input_sources: "fc:Out mul:Y"
- output_sources: "mul:X"
- desc: serialized BlockDesc.
- max_batch_size (for TensorRT)
- max_workspace (for TensorRT)
the input_sources
indicates where the inputs are from, the output_sources
indicate the operators this output belongs to. So that the convert_io
logic inside the TensorRTEngineOp
knows how to convert the Tensor between Fluid and TensorRT space.