Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for TF_NewGraph (0.47 sec)

  1. tensorflow/c/c_api_test.cc

      TF_DeleteStatus(s);
    }
    
    /*
    TODO(skyewm): this test currently DCHECKs, change to bad status
    
    TEST(CAPI, InputFromDifferentGraphError) {
      TF_Status* s = TF_NewStatus();
      TF_Graph* g1 = TF_NewGraph();
      TF_Graph* g2 = TF_NewGraph();
    
      TF_Operation* feed = Placeholder(g1, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Attempt to create node in g2 with input from g1
      Neg(feed, g2, s);
    C++
    - Registered: Tue Apr 30 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_experimental_test.cc

                        const char* description = nullptr,
                        bool append_hash = false) {
      std::unique_ptr<TF_Graph, decltype(&TF_DeleteGraph)> func_graph(
          TF_NewGraph(), TF_DeleteGraph);
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> s(TF_NewStatus(),
                                                               TF_DeleteStatus);
    
    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)
  3. tensorflow/c/c_api_function_test.cc

    };
    
    class CApiFunctionTest : public ::testing::Test {
     protected:
      CApiFunctionTest()
          : s_(TF_NewStatus()),
            func_graph_(TF_NewGraph()),
            host_graph_(TF_NewGraph()),
            func_(nullptr) {}
    
      void SetUp() override {}
    
      ~CApiFunctionTest() override {
        TF_DeleteFunction(func_);
        TF_DeleteGraph(host_graph_);
        TF_DeleteGraph(func_graph_);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  4. tensorflow/c/eager/parallel_device/parallel_device_test.cc

                                       const char* function_name, int group_size,
                                       TF_Status* status) {
      std::unique_ptr<TF_Graph, decltype(&TF_DeleteGraph)> body(TF_NewGraph(),
                                                                TF_DeleteGraph);
      TF_OperationDescription* placeholder_desc =
          TF_NewOperation(body.get(), "Placeholder", "Placeholder");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  5. tensorflow/c/c_api.cc

      if (ninputs == 0) {
        status->status =
            InvalidArgument("TF_NewWhile() must be passed at least one input");
        return EmptyWhileParams();
      }
    
      TF_Graph* cond_graph = TF_NewGraph();
      TF_Graph* body_graph = TF_NewGraph();
      cond_graph->parent = g;
      cond_graph->parent_inputs = inputs;
      body_graph->parent = g;
      body_graph->parent_inputs = inputs;
    
      TF_Output* cond_inputs = new TF_Output[ninputs];
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental_test.cc

        TFE_DeleteExecutor(executor);
        TFE_DeleteContext(ctx);
      }
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, Function_ident_CPU) {
      // First create a simple identity function.
      TF_Graph* function_graph = TF_NewGraph();
      TF_OperationDescription* arg_descr =
          TF_NewOperation(function_graph, "Placeholder", "arg");
      TF_SetAttrType(arg_descr, "dtype", TF_INT32);
      TF_Status* status = TF_NewStatus();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  7. tensorflow/c/c_api.h

    // Graphs are thread-safe when used as directed below.
    typedef struct TF_Graph TF_Graph;
    
    // Return a new graph object.
    TF_CAPI_EXPORT extern TF_Graph* TF_NewGraph(void);
    
    // Destroy an options object. Graph will be deleted once no more
    // TFSession's are referencing it.
    TF_CAPI_EXPORT extern void TF_DeleteGraph(TF_Graph*);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
Back to top