run pylint and clang-format to fix formatting issues
This commit is contained in:
parent
8db2e909e5
commit
c2c551e681
10
third_party/tensorrt/tensorrt_configure.bzl
vendored
10
third_party/tensorrt/tensorrt_configure.bzl
vendored
@ -28,14 +28,16 @@ _DEFINE_TENSORRT_SONAME_MINOR = "#define NV_TENSORRT_SONAME_MINOR"
|
|||||||
_DEFINE_TENSORRT_SONAME_PATCH = "#define NV_TENSORRT_SONAME_PATCH"
|
_DEFINE_TENSORRT_SONAME_PATCH = "#define NV_TENSORRT_SONAME_PATCH"
|
||||||
|
|
||||||
def _at_least_version(actual_version, required_version):
|
def _at_least_version(actual_version, required_version):
|
||||||
actual = [int(v) for v in actual_version.split(".")]
|
actual = [int(v) for v in actual_version.split(".")]
|
||||||
required = [int(v) for v in required_version.split(".")]
|
required = [int(v) for v in required_version.split(".")]
|
||||||
return actual >= required
|
return actual >= required
|
||||||
|
|
||||||
def _update_tensorrt_headers(tensorrt_version):
|
def _update_tensorrt_headers(tensorrt_version):
|
||||||
if not _at_least_version(tensorrt_version, "6"):
|
if not _at_least_version(tensorrt_version, "6"):
|
||||||
return
|
return
|
||||||
_TF_TENSORRT_HEADERS = ["NvInferVersion.h", "NvInfer.h", "NvUtils.h", "NvInferPlugin.h", "NvInferRTSafe.h", "NvInferRTExt.h", "NvInferPluginUtils.h"]
|
_TF_TENSORRT_HEADERS = ["NvInferVersion.h", "NvInfer.h", "NvUtils.h",
|
||||||
|
"NvInferPlugin.h", "NvInferRTSafe.h",
|
||||||
|
"NvInferRTExt.h", "NvInferPluginUtils.h"]
|
||||||
|
|
||||||
def _tpl(repository_ctx, tpl, substitutions):
|
def _tpl(repository_ctx, tpl, substitutions):
|
||||||
repository_ctx.template(
|
repository_ctx.template(
|
||||||
|
Loading…
Reference in New Issue
Block a user