Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_GetOpList (0.26 sec)

  1. tensorflow/c/c_api.h

    //
    // Returns a TF_Buffer. The memory pointed to by the result is owned by
    // lib_handle. The data in the buffer will be the serialized OpList proto for
    // ops defined in the library.
    TF_CAPI_EXPORT extern TF_Buffer TF_GetOpList(TF_Library* lib_handle);
    
    // Frees the memory associated with the library handle.
    // Does NOT unload the library.
    TF_CAPI_EXPORT extern void TF_DeleteLibraryHandle(TF_Library* lib_handle);
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  2. tensorflow/c/c_api_test.cc

        TF_Code code = TF_GetCode(status);
        string status_msg(TF_Message(status));
        TF_DeleteStatus(status);
        ASSERT_EQ(TF_OK, code) << status_msg;
    
        // Test op list.
        TF_Buffer op_list_buf = TF_GetOpList(lib);
        tensorflow::OpList op_list;
        EXPECT_TRUE(op_list.ParseFromArray(op_list_buf.data, op_list_buf.length));
        ASSERT_EQ(op_list.op_size(), 1);
        EXPECT_EQ("TestCApi1", op_list.op(0).name());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  3. tensorflow/c/c_api.cc

          &lib_handle->op_list.length);
      if (!status->status.ok()) {
        delete lib_handle;
        return nullptr;
      }
      return lib_handle;
    }
    
    TF_Buffer TF_GetOpList(TF_Library* lib_handle) { return lib_handle->op_list; }
    
    void TF_DeleteLibraryHandle(TF_Library* lib_handle) {
      if (lib_handle == nullptr) return;
      tensorflow::port::Free(const_cast<void*>(lib_handle->op_list.data));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top