Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aidge_export_tensorrt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nathan Thoumine
aidge_export_tensorrt
Commits
428273ae
Commit
428273ae
authored
1 year ago
by
Nathan Thoumine
Browse files
Options
Downloads
Patches
Plain Diff
remove support for old version of Tensor RT
parent
d13f356f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aidge_export_tensorrt/static/tensorrt_8.6/include/IInt8EntropyCalibrator.hpp
+5
-21
5 additions, 21 deletions
...rt/static/tensorrt_8.6/include/IInt8EntropyCalibrator.hpp
with
5 additions
and
21 deletions
aidge_export_tensorrt/static/tensorrt_8.6/include/IInt8EntropyCalibrator.hpp
+
5
−
21
View file @
428273ae
...
@@ -20,17 +20,9 @@ public:
...
@@ -20,17 +20,9 @@ public:
CHECK_CUDA_STATUS
(
cudaFree
(
mDeviceInput
));
CHECK_CUDA_STATUS
(
cudaFree
(
mDeviceInput
));
}
}
int
getBatchSize
()
const
int
getBatchSize
()
const
override
{
return
mStream
.
getBatchSize
();
}
#if NV_TENSORRT_MAJOR > 7
noexcept
#endif
override
{
return
mStream
.
getBatchSize
();
}
bool
getBatch
(
void
*
bindings
[],
const
char
*
names
[],
int
nbBindings
)
bool
getBatch
(
void
*
bindings
[],
const
char
*
names
[],
int
nbBindings
)
override
#if NV_TENSORRT_MAJOR > 7
noexcept
#endif
override
{
{
if
(
!
mStream
.
next
())
if
(
!
mStream
.
next
())
{
{
...
@@ -42,11 +34,7 @@ public:
...
@@ -42,11 +34,7 @@ public:
return
true
;
return
true
;
}
}
const
void
*
readCalibrationCache
(
size_t
&
length
)
const
void
*
readCalibrationCache
(
size_t
&
length
)
override
#if NV_TENSORRT_MAJOR > 7
noexcept
#endif
override
{
{
mCalibrationCache
.
clear
();
mCalibrationCache
.
clear
();
std
::
ifstream
input
(
calibrationTableName
(),
std
::
ios
::
binary
);
std
::
ifstream
input
(
calibrationTableName
(),
std
::
ios
::
binary
);
...
@@ -59,11 +47,7 @@ public:
...
@@ -59,11 +47,7 @@ public:
return
length
?
&
mCalibrationCache
[
0
]
:
nullptr
;
return
length
?
&
mCalibrationCache
[
0
]
:
nullptr
;
}
}
virtual
void
writeCalibrationCache
(
const
void
*
cache
,
size_t
length
)
virtual
void
writeCalibrationCache
(
const
void
*
cache
,
size_t
length
)
override
#if NV_TENSORRT_MAJOR > 7
noexcept
#endif
override
{
{
std
::
ofstream
output
(
calibrationTableName
(),
std
::
ios
::
binary
);
std
::
ofstream
output
(
calibrationTableName
(),
std
::
ios
::
binary
);
output
.
write
(
reinterpret_cast
<
const
char
*>
(
cache
),
length
);
output
.
write
(
reinterpret_cast
<
const
char
*>
(
cache
),
length
);
...
@@ -80,4 +64,4 @@ private:
...
@@ -80,4 +64,4 @@ private:
std
::
string
mCalibrationCacheName
;
std
::
string
mCalibrationCacheName
;
void
*
mDeviceInput
{
nullptr
};
void
*
mDeviceInput
{
nullptr
};
std
::
vector
<
char
>
mCalibrationCache
;
std
::
vector
<
char
>
mCalibrationCache
;
};
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment