Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewBuffer (0.24 sec)

  1. tensorflow/c/c_api_test.cc

      TF_DeleteSessionOptions(opt);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Buffer* run_options = TF_NewBufferFromString("", 0);
      TF_Buffer* run_metadata = TF_NewBuffer();
      TF_Run(session, run_options, nullptr, nullptr, 0, nullptr, nullptr, 0,
             nullptr, 0, run_metadata, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(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/eager/c_api_test.cc

      int num_retvals = 1;
      TFE_Execute(matmul, &retvals[0], &num_retvals, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteOp(matmul);
      TFE_DeleteTensorHandle(m);
      TF_Buffer* b = TF_NewBuffer();
      TFE_ContextExportRunMetadata(ctx, b, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      tensorflow::RunMetadata rm;
      EXPECT_TRUE(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  3. tensorflow/c/c_api_function_test.cc

        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void GetAttr(const char* attr_name, AttrValue* out_attr) {
        TF_Buffer* attr_buf = TF_NewBuffer();
        TF_FunctionGetAttrValueProto(func_, attr_name, attr_buf, s_);
        ASSERT_TRUE(out_attr->ParseFromArray(attr_buf->data, attr_buf->length));
        TF_DeleteBuffer(attr_buf);
      }
    
    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/c_api.h

                                                              size_t* pos);
    
    // Write out a serialized representation of `graph` (as a GraphDef protocol
    // message) to `output_graph_def` (allocated by TF_NewBuffer()).
    // `output_graph_def`'s underlying buffer will be freed when TF_DeleteBuffer()
    // is called.
    //
    // May fail on very large graphs in the future.
    TF_CAPI_EXPORT extern void TF_GraphToGraphDef(TF_Graph* 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