Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 67 for text_format (0.31 sec)

  1. tensorflow/c/c_api_experimental_test.cc

      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);
    
      const string malformed_text_proto(R"(cluster {
      job {
        name: "worker")");
      TF_Buffer* null_result =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

    static std::vector<UniqueFuncPtr> CreateFunctionsFromTextProto(
        const char* text_proto,
        std::function<void(FunctionDef*)>* mutate_proto_func, TF_Status* status) {
      tensorflow::GraphDef gdef;
      if (!tensorflow::protobuf::TextFormat::ParseFromString(text_proto, &gdef)) {
        status->status = tensorflow::errors::Internal(
            "Invalid text proto for GraphDef: ", text_proto);
        return {};
      }
      const auto& fdef_lib = gdef.library();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    */
    
    package library_test
    
    import (
    	"fmt"
    	"testing"
    
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    	"k8s.io/apiserver/pkg/cel/library"
    )
    
    func TestFormat(t *testing.T) {
    	type testcase struct {
    		name               string
    		expr               string
    		expectValue        ref.Val
    		expectedCompileErr []string
    		expectedRuntimeErr string
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. internal/etag/etag_test.go

    	{ETag: "20000f00db2d90a7b40782d4cff2b41a7799fc1e7ead25972db65150118dfbe2ba76a3c002da28f85c840cd2001a28a9", AWSETag: "ba76a3c002da28f85c840cd2001a28a9"}, // 4
    }
    
    func TestFormat(t *testing.T) {
    	for i, test := range formatTests {
    		tag, err := Parse(test.ETag)
    		if err != nil {
    			t.Fatalf("Test %d: failed to parse ETag: %v", i, err)
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      // [b, 0, 1, f]x[0, 1, i, o]->[b, 0, 1, f].
    
      tensorflow::UniformQuantizedConvolutionDimensionNumbersAttr dimension_numbers;
      if (!tensorflow::protobuf::TextFormat::ParseFromString(
              R"pb(
                input_batch_dimension: 0
                input_feature_dimension: 3
                input_spatial_dimensions: 1
                input_spatial_dimensions: 2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. src/math/big/intconv_test.go

    	{"-1234", "%-8.8d", "-00001234"},
    
    	{"16777215", "%b", "111111111111111111111111"}, // 2**24 - 1
    
    	{"0", "%.d", ""},
    	{"0", "%.0d", ""},
    	{"0", "%3.d", ""},
    }
    
    func TestFormat(t *testing.T) {
    	for i, test := range formatTests {
    		var x *Int
    		if test.input != "<nil>" {
    			var ok bool
    			x, ok = new(Int).SetString(test.input, 0)
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 22:58:58 UTC 2019
    - 10K bytes
    - Viewed (0)
  7. src/text/template/parse/node.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Parse nodes.
    
    package parse
    
    import (
    	"fmt"
    	"strconv"
    	"strings"
    )
    
    var textFormat = "%s" // Changed to "%q" in tests for better error messages.
    
    // A Node is an element in the parse tree. The interface is trivial.
    // The interface contains an unexported method so that only
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

        const std::vector<std::string> extra_tf_opdefs) {
      for (const auto& tf_opdefs_string : extra_tf_opdefs) {
        OpDef opdef;
        // NOLINTNEXTLINE: Use tsl::protobuf to be compatible with OSS.
        if (!tsl::protobuf::TextFormat::ParseFromString(tf_opdefs_string, &opdef)) {
          return errors::InvalidArgument("fail to parse extra OpDef");
        }
        // Make sure the op is not already registered. If registered continue.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/python/converter_python_api.cc

                       "defs argument",
                       i);
          return nullptr;
        }
    
        // Parse op def from character array.
        tensorflow::OpDef opdef;
        if (!tensorflow::protobuf::TextFormat::ParseFromString(tf_opdefs, &opdef)) {
          PyErr_Format(
              PyExc_ValueError,
              "Failed to parse opdefs at index %d of custom op defs argument: %s",
              i, tf_opdefs);
          return nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. tensorflow/c/kernels_test.cc

        list.ParseFromArray(buf->data, buf->length);                             \
        KernelList expected_proto;                                               \
        protobuf::TextFormat::ParseFromString(ExpectedString(#dtype),            \
                                              &expected_proto);                  \
        ASSERT_EQ(expected_proto.DebugString(), list.DebugString());             \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
Back to top