Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 67 for text_format (0.26 sec)

  1. src/test/java/org/codelibs/core/log/LoggerTest.java

        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.log.Logger#format(String, Object...)} .
         */
        @SuppressWarnings("static-access")
        @Test
        public void testFormat() {
            exception.expect(ClIllegalArgumentException.class);
            exception.expectMessage(is("[ECL0009]argument[AUTL0009] is illegal. because messageCode : AUTL0009."));
            Logger.format("AUTL0009", "hoge");
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_distributed_test.cc

    namespace {
    
    using ::tensorflow::string;
    
    // Add the values of three variables on three different tasks.
    string AddVariablesFunction() {
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          "    signature {"
          "      name: 'AddVariablesFunction'"
          "      input_arg {"
          "        name: 'var'"
          "        type: DT_RESOURCE"
          "      }"
          "      output_arg {"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/report_test.cc

    using ::stablehlo::quantization::io::ReadFileToString;
    using ::testing::HasSubstr;
    using ::testing::IsEmpty;
    using ::testing::SizeIs;
    using ::testing::StrEq;
    using ::testing::TempDir;
    using ::tsl::protobuf::TextFormat;
    using ::tsl::testing::IsOk;
    
    using QuantizationReportTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(QuantizationReportTest, GetQuantizationResultsReturnsEmptyResults) {
      QuantizationReport report{};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 10:10:34 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_activity_listener_test.cc

      TF_ASSERT_OK(session->Run(inputs_2x2, output_names,
                                /*target_tensor_names=*/{}, &outputs));
    
      XlaAutoClusteringActivity expected_auto_clustering_activity;
      protobuf::TextFormat::ParseFromString(
          R"(global_jit_level: ON_2
    cpu_global_jit_enabled: true
    summary {
      unclustered_node_count: 4
      clustered_node_count: 14
      clusters {
        name: "cluster_0"
        size: 14
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/object_graph_traversal_test.cc

    #include "tensorflow/core/protobuf/saved_object_graph.pb.h"
    
    namespace tensorflow {
    namespace {
    
    SavedObjectGraph ParseSavedObjectGraph(StringPiece text_proto) {
      SavedObjectGraph value;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(string(text_proto),
                                                              &value));
      return value;
    }
    
    constexpr absl::string_view kSingleChildFoo = R"(
    nodes {
      children {
        node_id: 1
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 22 20:15:34 UTC 2020
    - 7.9K bytes
    - Viewed (0)
  6. tensorflow/c/kernels/summary_op_test.cc

        return cpu_allocator();
      }
    };
    
    // Helper for comparing output and expected output
    void ExpectSummaryMatches(const Summary& actual, const string& expected_str) {
      Summary expected;
      ASSERT_TRUE(protobuf::TextFormat::ParseFromString(expected_str, &expected));
      EXPECT_EQ(expected.DebugString(), actual.DebugString());
    }
    
    void TestScalarSummaryOp(Tensor* tags, Tensor* values, string expected_output,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/tests/auto_clustering_test_helper.cc

        }
      }
    
      return absl::OkStatus();
    }
    
    Status ReadTextProtoFromString(Env* env, const string& data,
                                   ::tensorflow::protobuf::Message* proto) {
      if (!::tensorflow::protobuf::TextFormat::ParseFromString(data, proto)) {
        return errors::DataLoss("Can't parse input data as text proto");
      }
      return absl::OkStatus();
    }
    }  // namespace
    
    Status AutoClusteringTest::RunAutoClusteringTestImpl(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 12:11:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_remote_test_util.cc

    #include "tensorflow/core/protobuf/tensorflow_server.pb.h"
    
    using ::tensorflow::string;
    
    string MatMulFunction(const string& matmul_device) {
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          absl::StrCat("    signature {"
                       "      name: 'MatMulFunction'"
                       "      input_arg {"
                       "        name: 'a'"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

    #include "tensorflow/core/platform/mutex.h"
    #include "tsl/platform/protobuf.h"  // IWYU pragma: keep
    
    namespace mlir::quant {
    
    using ::stablehlo::quantization::Method;
    using ::tsl::protobuf::TextFormat;
    
    // Default version number for native serialization.
    constexpr int64_t kDefaultVersion = 9;
    // Default platform for XlaCallModuleOp.
    constexpr StringRef kPlatformCpu = "CPU";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.cc

    };
    
    bool LoadHloProto(const std::string& contents, xla::HloProto* hlo_proto) {
      // NOLINTNEXTLINE: Use tsl::protobuf to be compatible with OSS.
      tsl::protobuf::TextFormat::Parser parser;
      NoOpErrorCollector collector;
      parser.RecordErrorsTo(&collector);
      return hlo_proto->ParseFromString(contents) ||
             parser.ParseFromString(contents, hlo_proto) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top