Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TF_FinishOperation (0.06 sec)

  1. tensorflow/c/c_test_util.cc

      TF_AddInputList(desc, inputs, 2);
      return TF_FinishOperation(desc, s);
    }
    
    void NegHelper(TF_Operation* n, TF_Graph* graph, TF_Status* s, const char* name,
                   TF_Operation** op) {
      TF_OperationDescription* desc = TF_NewOperation(graph, "Neg", name);
      TF_Output neg_input = {n, 0};
      TF_AddInput(desc, neg_input);
      *op = TF_FinishOperation(desc, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat Oct 04 05:55:32 UTC 2025
    - 17.8K bytes
    - Viewed (1)
  2. tensorflow/c/c_api_test.cc

      TF_SetAttrIntList(desc, "v", nullptr, 0);
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TF_META("v", 0, TF_ATTR_INT, -1);
    }
    
    TEST_F(CApiAttributesTest, Names) {
      auto desc = init("string");
      TF_SetAttrString(desc, "v", "bunny", 5);
    
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Mon Nov 17 00:00:38 UTC 2025
    - 97K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.h

        TF_Graph* graph, const char* op_type, const char* oper_name);
    
    // Operation will only be added to *graph when TF_FinishOperation() is
    // called (assuming TF_FinishOperation() does not return an error).
    // *graph must not be deleted until after TF_FinishOperation() is
    // called.
    TF_CAPI_EXPORT extern TF_OperationDescription* TF_NewOperation(
        TF_Graph* graph, const char* op_type, const char* oper_name);
    
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_function_test.cc

          TF_AddInput(desc, input);
        }
        // Set device to CPU because some ops inside the function might not be
        // available on GPU.
        TF_SetDevice(desc, "/cpu:0");
        *op = TF_FinishOperation(desc, s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
        ASSERT_NE(*op, nullptr);
      }
    
      FunctionDef fdef() {
        tensorflow::FunctionDef fdef;
        EXPECT_TRUE(GetFunctionDef(func_, &fdef));
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Mon Nov 17 00:00:38 UTC 2025
    - 63.6K bytes
    - Viewed (1)
  5. tensorflow/c/c_api.cc

        } else if (ret != nullptr) {
          desc->graph->graph.RemoveNode(ret);
          ret = nullptr;
        }
      }
    
      delete desc;
    
      return ToOperation(ret);
    }
    
    TF_Operation* TF_FinishOperation(TF_OperationDescription* desc,
                                     TF_Status* status) {
      mutex_lock l(desc->graph->mu);
      return TF_FinishOperationLocked(desc, status);
    }
    
    // TF_Operation functions
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat Oct 04 05:55:32 UTC 2025
    - 102.4K bytes
    - Viewed (0)
Back to top