Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_UpdateEdge (0.11 sec)

  1. tensorflow/c/c_api.cc

      status->status = MessageToBuffer(kernel_list, ret);
      if (!status->status.ok()) {
        TF_DeleteBuffer(ret);
        return nullptr;
      }
      return ret;
    }
    
    void TF_UpdateEdge(TF_Graph* graph, TF_Output new_src, TF_Input dst,
                       TF_Status* status) {
      using tensorflow::RecordMutation;
      mutex_lock l(graph->mu);
      tensorflow::shape_inference::InferenceContext* ic =
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      NodeDef node_def_neg;
      ASSERT_TRUE(GetNodeDef(neg, &node_def_neg));
      EXPECT_EQ(string("add"), node_def_neg.input(0));
    
      // update edge of neg
      TF_UpdateEdge(graph, TF_Output{one, 0}, TF_Input{neg, 0}, s);
    
      ASSERT_TRUE(GetNodeDef(neg, &node_def_neg));
      EXPECT_EQ(string("one:0"), node_def_neg.input(0));
    
      // Clean up
      TF_DeleteGraph(graph);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top