Skip to content

Commit 346bdca

Browse files
authored
10.13-GA Release (#1031)
Signed-off-by: Kevin Chen <[email protected]>
1 parent ff761af commit 346bdca

23 files changed

+963
-380
lines changed

CMakeLists.txt

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ add_definitions("-DSOURCE_LENGTH=${SOURCE_LENGTH}")
2828
# Version information
2929
#--------------------------------------------------
3030
set(ONNX2TRT_MAJOR 10)
31-
set(ONNX2TRT_MINOR 12)
31+
set(ONNX2TRT_MINOR 13)
3232
set(ONNX2TRT_PATCH 0)
3333
set(ONNX2TRT_VERSION "${ONNX2TRT_MAJOR}.${ONNX2TRT_MINOR}.${ONNX2TRT_PATCH}" CACHE STRING "ONNX2TRT version")
3434

@@ -37,26 +37,28 @@ set(ONNX2TRT_VERSION "${ONNX2TRT_MAJOR}.${ONNX2TRT_MINOR}.${ONNX2TRT_PATCH}" CAC
3737
#--------------------------------------------------
3838

3939
set(IMPORTER_SOURCES
40-
NvOnnxParser.cpp
41-
ModelImporter.cpp
42-
ModelRefitter.cpp
43-
onnxOpImporters.cpp
44-
ImporterContext.cpp
45-
importerUtils.cpp
46-
ShapedWeights.cpp
47-
ShapeTensor.cpp
48-
LoopHelpers.cpp
49-
RNNHelpers.cpp
50-
OnnxAttrs.cpp
51-
onnxErrorRecorder.cpp
52-
ConditionalHelpers.cpp
53-
bfloat16.cpp
54-
onnxOpCheckers.cpp
55-
onnxProtoUtils.cpp
56-
weightUtils.cpp
57-
WeightsContext.cpp
58-
TensorOrWeights.cpp
59-
errorHelpers.cpp
40+
NvOnnxParser.cpp
41+
ModelImporter.cpp
42+
ModelRefitter.cpp
43+
onnxOpImporters.cpp
44+
ImporterContext.cpp
45+
importerUtils.cpp
46+
ShapedWeights.cpp
47+
ShapeTensor.cpp
48+
Status.cpp
49+
LoopHelpers.cpp
50+
RNNHelpers.cpp
51+
OnnxAttrs.cpp
52+
onnxErrorRecorder.cpp
53+
ConditionalHelpers.cpp
54+
bfloat16.cpp
55+
onnxOpCheckers.cpp
56+
onnxProtoUtils.cpp
57+
TensorOrWeights.cpp
58+
WeightsContext.cpp
59+
WeightsContextMemoryMap.cpp
60+
weightUtils.cpp
61+
errorHelpers.cpp
6062
)
6163

6264
if (BUILD_ONNXIFI)
@@ -70,7 +72,7 @@ set(API_TESTS_SOURCES
7072

7173
# Find protobuf if it's not a target.
7274
if (NOT TARGET protobuf::libprotobuf)
73-
FIND_PACKAGE(Protobuf REQUIRED)
75+
FIND_PACKAGE(Protobuf)
7476
endif()
7577

7678
# Set protobuf libraries between full / lite.

ConditionalHelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void addConditionalInputLayer(ImporterContext* ctx, nvinfer1::IIfConditional* co
5555
}
5656
auto ifOutput = N_CHECK(inputLayer->getOutput(0));
5757
layer.setInput(inIdx, *ifOutput);
58-
};
58+
}
5959

6060
// Take a snapshot of the network before and after parsing the subgraph and return a list
6161
// of newly added network layers.

ImporterContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class DynamicLibrary
138138
};
139139

140140
//! Translates an OS-dependent DSO/DLL name into a path on the filesystem
141-
std::string getOSLibraryPath(std::string const& osLibName)
141+
inline std::string getOSLibraryPath(std::string const& osLibName)
142142
{
143143
DynamicLibrary lib{osLibName};
144144
return lib.getFullPath();

ImporterContext.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class ErrorRecorderWrapper
2929
public:
3030
ErrorRecorderWrapper(nvinfer1::INetworkDefinition* network, nvinfer1::ILogger* logger)
3131
: mNetwork(network)
32-
, mLogger(logger)
3332
{
3433
if (mNetwork)
3534
{
@@ -69,9 +68,9 @@ class ErrorRecorderWrapper
6968
{
7069
return mOnnxErrorRecorder ? mOnnxErrorRecorder : nullptr;
7170
}
71+
7272
private:
7373
nvinfer1::INetworkDefinition* mNetwork{nullptr};
74-
nvinfer1::ILogger* mLogger{nullptr};
7574
ONNXParserErrorRecorder* mOnnxErrorRecorder{nullptr};
7675
nvinfer1::IErrorRecorder* mUserErrorRecorder{nullptr};
7776
};
@@ -386,7 +385,7 @@ class ImporterContext
386385
}
387386

388387
// Returns if the underlying network was created with the KSTRONGLY_TYPED flag.
389-
bool const isStronglyTyped()
388+
bool isStronglyTyped()
390389
{
391390
assert(mNetwork != nullptr);
392391
return mNetwork->getFlag(nvinfer1::NetworkDefinitionCreationFlag::kSTRONGLY_TYPED);

0 commit comments

Comments
 (0)