Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ParseFromArray (0.53 sec)

  1. tensorflow/c/checkpoint_reader.cc

      std::unordered_set<string> filtered_keys;
      BundleEntryProto entry;
      v2_reader_->Seek(kHeaderEntryKey);
      for (v2_reader_->Next(); v2_reader_->Valid(); v2_reader_->Next()) {
        CHECK(entry.ParseFromArray(v2_reader_->value().data(),
                                   v2_reader_->value().size()))
            << entry.InitializationErrorString();
        for (int i = 0; i < entry.slices_size(); ++i) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/c/c_test_util.cc

      TF_Buffer* buffer = TF_NewBuffer();
      TF_GraphToGraphDef(graph, buffer, s);
      bool ret = TF_GetCode(s) == TF_OK;
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      if (ret) ret = graph_def->ParseFromArray(buffer->data, buffer->length);
      TF_DeleteBuffer(buffer);
      TF_DeleteStatus(s);
      return ret;
    }
    
    bool GetNodeDef(TF_Operation* oper, tensorflow::NodeDef* node_def) {
      TF_Status* s = TF_NewStatus();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  3. tensorflow/c/c_api_function.cc

    }
    
    TF_Function* TF_FunctionImportFunctionDef(const void* proto, size_t proto_len,
                                              TF_Status* status) {
      tensorflow::FunctionDef fdef;
      bool success = fdef.ParseFromArray(proto, proto_len);
      if (!success) {
        status->status = InvalidArgument(
            "Invalid FunctionDef given to TF_FunctionImportFunctionDef");
        return nullptr;
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  4. tensorflow/c/c_api.cc

      options->options.target = target;
    }
    
    void TF_SetConfig(TF_SessionOptions* options, const void* proto,
                      size_t proto_len, TF_Status* status) {
      if (!options->options.config.ParseFromArray(proto, proto_len)) {
        status->status = InvalidArgument("Unparseable ConfigProto");
      }
      // Disable optimizations for static graph to allow calls to Session::Extend.
      options->options.config.mutable_experimental()
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_test.cc

        EXPECT_TRUE(op_list.ParseFromArray(op_list_buf.data, op_list_buf.length));
        ASSERT_EQ(op_list.op_size(), 1);
        EXPECT_EQ("TestCApi1", op_list.op(0).name());
        TF_DeleteLibraryHandle(lib);
      }
    #endif  // !defined(TENSORFLOW_NO_SHARED_OBJECTS)
      {
        TF_Buffer* op_list_buffer = TF_GetAllOpList();
        tensorflow::OpList op_list;
        op_list.ParseFromArray(op_list_buffer->data, op_list_buffer->length);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  6. tensorflow/c/eager/c_api.cc

      status->status = tensorflow::errors::Unimplemented(
          "TFE_ContextSetServerDef not supported on mobile");
    #else   // !defined(IS_MOBILE_PLATFORM)
      tensorflow::ServerDef server_def;
      if (!server_def.ParseFromArray(proto, proto_len)) {
        status->status = tensorflow::errors::InvalidArgument(
            "Invalid tensorflow.ServerDef protocol buffer");
        return;
      }
      status->status =
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  7. tensorflow/c/c_api_experimental_test.cc

    protocol: "grpc"
    )");
    
      TF_Status* status = TF_NewStatus();
      TF_Buffer* result = TFE_GetServerDef(expected_text_proto.c_str(), status);
      EXPECT_EQ(TF_GetCode(status), TF_OK);
    
      ServerDef actual;
      ASSERT_TRUE(actual.ParseFromArray(result->data, result->length));
      string actual_text_proto;
      tensorflow::protobuf::TextFormat::PrintToString(actual, &actual_text_proto);
      EXPECT_EQ(expected_text_proto, actual_text_proto);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  8. tensorflow/c/c_api_experimental.cc

                                                       size_t proto_len,
                                                       TF_Status* status) {
      tensorflow::ServerDef server_def;
      if (!server_def.ParseFromArray(proto, proto_len)) {
        status->status = tensorflow::errors::InvalidArgument(
            "Invalid tensorflow.ServerDef protocol buffer");
        return;
      }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental.cc

                                        const void* proto, size_t proto_len,
                                        TF_Status* status) {
      tensorflow::ServerDef server_def;
      if (!server_def.ParseFromArray(proto, proto_len)) {
        status->status = tensorflow::errors::InvalidArgument(
            "Invalid tensorflow.ServerDef protocol buffer");
        return;
      }
      status->status =
          tensorflow::unwrap(ctx)
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  10. tensorflow/c/c_api_function_test.cc

      }
    
      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);
      }
    
      const char* func_name_ = "MyFunc";
      const char* func_node_name_ = "MyFunc_0";
      TF_Status* s_;
      TF_Graph* func_graph_;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top