Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/c/c_api_experimental_test.cc

    TEST(CAPI_EXPERIMENTAL, IsStateful) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      int assign = TF_OpIsStateful("AssignAddVariableOp", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(assign, 1);
      int id = TF_OpIsStateful("Identity", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(id, 0);
    }
    
    C++
    - Registered: Tue Apr 30 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

        const char* op_name, int input_index, TF_Status* status);
    
    // Returns 1 if the op is stateful, 0 otherwise. The return value is undefined
    // if the status is not ok.
    TF_CAPI_EXPORT extern int TF_OpIsStateful(const char* op_type,
                                              TF_Status* status);
    
    // Platform specific initialization routine. Very few platforms actually require
    // this to be called.
    C
    - Registered: Tue Apr 30 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;
      }
    
      // The returned string is owned by OpRegistry, so liveness is not a concern.
      return input_arg.number_attr().c_str();
    }
    
    int TF_OpIsStateful(const char* op_type, TF_Status* status) {
      const tensorflow::OpRegistrationData* op_reg_data;
      status->status =
          tensorflow::OpRegistry::Global()->LookUp(op_type, &op_reg_data);
      if (!status->status.ok()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
Back to top