From c102dc94c70dfa58cc1aa847492bba8307e731d0 Mon Sep 17 00:00:00 2001 From: Penporn Koanantakool <penporn@google.com> Date: Tue, 12 Jan 2021 17:41:28 -0800 Subject: [PATCH] Remove redundant code. PiperOrigin-RevId: 351484243 Change-Id: If3a9eead0ceb1859c65627c13efeeb5b9dc8676c --- tensorflow/c/experimental/stream_executor/stream_executor.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tensorflow/c/experimental/stream_executor/stream_executor.cc b/tensorflow/c/experimental/stream_executor/stream_executor.cc index 638566ced29..bceb04f7ea9 100644 --- a/tensorflow/c/experimental/stream_executor/stream_executor.cc +++ b/tensorflow/c/experimental/stream_executor/stream_executor.cc @@ -801,10 +801,6 @@ port::Status InitStreamExecutorPlugin(SEInitPluginFn init_fn) { TF_RETURN_IF_ERROR(tensorflow::StatusFromTF_Status(c_status.get())); TF_RETURN_IF_ERROR(ValidateSPTimerFns(timer_fns)); - platform_fns.create_timer_fns(&platform, &timer_fns, c_status.get()); - TF_RETURN_IF_ERROR(tensorflow::StatusFromTF_Status(c_status.get())); - TF_RETURN_IF_ERROR(ValidateSPTimerFns(timer_fns)); - // Register new platform std::string platform_name = std::string(platform.name); std::unique_ptr<stream_executor::CPlatform> cplatform(