Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for printToString (0.16 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/failure/FailurePrinterTest.groovy

            def f = toFailure(e)
    
            expect:
            FailurePrinter.printToString(f) == getTraceString(e)
        }
    
        def "prints same as JVM for an exception with cause"() {
            def e = new RuntimeException("BOOM", SimulatedJavaException.simulateDeeperException())
            def f = toFailure(e)
    
            expect:
            FailurePrinter.printToString(f) == getTraceString(e)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:12:10 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/report.cc

      *quantization_results_.add_results() = std::move(result);
    }
    
    std::string QuantizationReport::ToString() const {
      std::string results_str{};
      TextFormat::PrintToString(quantization_results_, &results_str);
    
      return absl::StrCat("===== Quantization Report =====\n\n", results_str,
                          "\n===== Quantization Report End =====\n\n");
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/problems/failure/FailurePrinter.java

     * <p>
     * The printer additionally allows reacting to each frame to be printed via a {@link FailurePrinterListener}.
     */
    public class FailurePrinter {
    
        public static String printToString(Failure failure) {
            StringBuilder output = new StringBuilder();
            print(output, failure, FailurePrinterListener.NO_OP);
            return output.toString();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:45:41 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

    FailureOr<std::string> QuantizationMethodToTextProto(const Method& method) {
      TextFormat::Printer printer;
      printer.SetSingleLineMode(true);
    
      std::string method_txtpb;
      if (!printer.PrintToString(method, &method_txtpb)) {
        LLVM_DEBUG(llvm::dbgs() << "Failed to convert Method to textproto\n.");
        return failure();
      }
    
      // Single line mode might have an extra space at the end, due to the internal
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-printers.h

    // We also provide some convenient wrappers:
    //
    //   // Prints a value to a string.  For a (const or not) char
    //   // pointer, the NUL-terminated string (but not the pointer) is
    //   // printed.
    //   std::string ::testing::PrintToString(const T& value);
    //
    //   // Prints a value tersely: for a reference type, the referenced
    //   // value (but not the address) is printed; for a (const or not) char
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 30.9K bytes
    - Viewed (0)
  7. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-printers.h

    // We also provide some convenient wrappers:
    //
    //   // Prints a value to a string.  For a (const or not) char
    //   // pointer, the NUL-terminated string (but not the pointer) is
    //   // printed.
    //   std::string ::testing::PrintToString(const T& value);
    //
    //   // Prints a value tersely: for a reference type, the referenced
    //   // value (but not the address) is printed; for a (const or not) char
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/report_test.cc

      report.AddQuantizationResult(std::move(result));
    
      // Check that the report string is equivalent to the textproto representation
      // of the `QuantizationResults`.
      std::string result_str{};
      TextFormat::PrintToString(report.GetQuantizationResults(), &result_str);
    
      EXPECT_THAT(report.ToString(), HasSubstr("Quantization Report"));
      EXPECT_THAT(report.ToString(), HasSubstr(result_str));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 10:10:34 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util.h

              MakeAndRegisterTestInfo(
                  test_case_name.c_str(),
                  test_name_stream.GetString().c_str(),
                  NULL,  // No type parameter.
                  PrintToString(*param_it).c_str(),
                  GetTestCaseTypeId(),
                  TestCase::SetUpTestCase,
                  TestCase::TearDownTestCase,
                  test_info->test_meta_factory->CreateTestFactory(*param_it));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      std::string txt_metadata;
      if (tpu_compile_metadata_debug) {
        ::tensorflow::protobuf::TextFormat::Printer printer;
        printer.SetExpandAny(true);
        printer.PrintToString(metadata, &txt_metadata);
      } else {
        metadata.SerializeToString(&txt_metadata);
      }
    
      auto compile_op = builder->create<TF::_TPUCompileMlirOp>(
          cluster_func.getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top