Address review comments
This commit is contained in:
parent
0b31ebb51b
commit
4684421d9a
@ -794,7 +794,8 @@ std::pair<int, tensorflow::Allocator*> GetDeviceAndAllocator(
|
|||||||
gpu_options, tf_gpu_id, 1);
|
gpu_options, tf_gpu_id, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
VLOG(2) << "TF GPU with id " << tf_gpu_id_value << " do not exist " << s;
|
LOG(ERROR) << "TF GPU with id " << tf_gpu_id_value << " does not exist "
|
||||||
|
<< s;
|
||||||
}
|
}
|
||||||
return std::make_pair(cuda_device_id, dev_allocator);
|
return std::make_pair(cuda_device_id, dev_allocator);
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ limitations under the License.
|
|||||||
|
|
||||||
namespace tensorflow {
|
namespace tensorflow {
|
||||||
namespace tensorrt {
|
namespace tensorrt {
|
||||||
|
// TODO(aaroey): put these constants into some class.
|
||||||
const char* const kInputPHName = "TensorRTInputPH_";
|
const char* const kInputPHName = "TensorRTInputPH_";
|
||||||
const char* const kOutputPHName = "TensorRTOutputPH_";
|
const char* const kOutputPHName = "TensorRTOutputPH_";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user