Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_GraphRemoveFunction (0.23 sec)

  1. tensorflow/c/c_api_experimental_test.cc

      EXPECT_EQ(TF_GraphNumFunctions(func_graph_), 1);
      EXPECT_EQ(TF_GraphGetFunctions(func_graph_, funcs, 1, s_), 1);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      TF_GraphRemoveFunction(func_graph_, func_name_, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      EXPECT_EQ(TF_GraphNumFunctions(func_graph_), 0);
      EXPECT_EQ(TF_GraphGetFunctions(func_graph_, funcs, 1, s_), 0);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  2. tensorflow/c/c_api_experimental.h

    TF_CAPI_EXPORT extern void TF_DeletePluggableDeviceLibraryHandle(
        TF_Library* lib_handle);
    
    // Removes `func_name` from `g`. If `func_name` is not in `g`, an error will be
    // returned.
    TF_CAPI_EXPORT extern void TF_GraphRemoveFunction(TF_Graph* g,
                                                      const char* func_name,
                                                      TF_Status* status);
    
    #ifdef __cplusplus
    } /* end extern "C" */
    #endif
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

            return nullptr;
          }
        }
        return lib_handle;
      }
    #endif
    }
    
    void TF_DeletePluggableDeviceLibraryHandle(TF_Library* lib_handle) {
      delete lib_handle;
    }
    
    void TF_GraphRemoveFunction(TF_Graph* g, const char* func_name,
                                TF_Status* status) {
      tensorflow::mutex_lock l(g->mu);
      status->status = g->graph.mutable_flib_def()->RemoveFunction(func_name);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
Back to top