tensorflow/third_party/tensorrt/build_defs.bzl.tpl
Thomas Köppe 65d75a7955 Internal change only.
PiperOrigin-RevId: 547962474
2023-07-13 16:39:42 -07:00

10 lines
276 B
Smarty

# Build configurations for TensorRT.
def if_tensorrt(if_true, if_false=[]):
"""Tests whether TensorRT was enabled during the configure process."""
return %{if_tensorrt}
def if_tensorrt_exec(if_true, if_false=[]):
"""Synonym for if_tensorrt."""
return %{if_tensorrt}