Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_GetAllOpList (0.21 sec)

  1. tensorflow/c/c_api_test.cc

        ASSERT_EQ(op_list.op_size(), 1);
        EXPECT_EQ("TestCApi1", op_list.op(0).name());
        TF_DeleteLibraryHandle(lib);
      }
    #endif  // !defined(TENSORFLOW_NO_SHARED_OBJECTS)
      {
        TF_Buffer* op_list_buffer = TF_GetAllOpList();
        tensorflow::OpList op_list;
        op_list.ParseFromArray(op_list_buffer->data, op_list_buffer->length);
        ASSERT_GE(op_list.op_size(), 1);
    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)
  2. tensorflow/c/c_api.h

    // (and can be freed using TF_DeleteBuffer).
    //
    // The data in the buffer will be the serialized OpList proto for ops registered
    // in this address space.
    TF_CAPI_EXPORT extern TF_Buffer* TF_GetAllOpList(void);
    
    // TF_ApiDefMap encapsulates a collection of API definitions for an operation.
    //
    // This object maps the name of a TensorFlow operation to a description of the
    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)
  3. tensorflow/c/c_api.cc

    void TF_DeleteLibraryHandle(TF_Library* lib_handle) {
      if (lib_handle == nullptr) return;
      tensorflow::port::Free(const_cast<void*>(lib_handle->op_list.data));
      delete lib_handle;
    }
    
    TF_Buffer* TF_GetAllOpList() {
      std::vector<tensorflow::OpDef> op_defs;
      tensorflow::OpRegistry::Global()->GetRegisteredOps(&op_defs);
      tensorflow::OpList op_list;
      for (const auto& op : op_defs) {
        *(op_list.add_op()) = op;
      }
    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