Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for text_format (0.38 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

    limitations under the License.
    ==============================================================================*/
    
    #include <algorithm>
    #include <memory>
    #include <string>
    
    #include "google/protobuf/text_format.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/StringRef.h"
    #include "llvm/ADT/Twine.h"
    #include "llvm/Support/FormatVariadic.h"
    #include "llvm/Support/Regex.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def_test.cc

    namespace {
    
    using ::tensorflow::GraphDef;
    using ::tensorflow::NodeDef;
    using ::testing::SizeIs;
    using ::testing::StrEq;
    using ::tsl::protobuf::TextFormat;
    
    TEST(GraphDefTest, MutateNodeDefsMutatesTopLevelNodeDefs) {
      GraphDef graph_def;
      ASSERT_TRUE(TextFormat::ParseFromString(R"pb(
                                                node { name: "foo" }
                                              )pb",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 28 18:38:06 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_lift_quantizable_spots_as_functions_with_quantization_specs.cc

    #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/passes.h.inc"
    
    namespace {
    
    using ::stablehlo::quantization::QuantizationSpecs;
    using ::tsl::protobuf::TextFormat;
    // NOLINTNEXTLINE(misc-include-cleaner) - Required for OSS.
    using ::tsl::protobuf::io::ArrayInputStream;
    
    // Empty (default) `QuantizationSpecs` proto.
    constexpr absl::string_view kSpecsEmpty = R"pb(specs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 23:21:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/report.cc

    using ::stablehlo::quantization::Method;
    using ::stablehlo::quantization::QuantizationResult;
    using ::stablehlo::quantization::QuantizationResults;
    using ::stablehlo::quantization::io::WriteStringToFile;
    using ::tsl::protobuf::TextFormat;
    
    // Given a `quantized_func_name` that starts with `kQuantizedFuncPrefix`,
    // converts `kQuantizedFuncPrefix` to `kCompositeFuncPrefix`.
    std::string GetCompositeFunctionName(const StringRef quantized_func_name) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils_test.cc

          cluster_func_op,
          /*num_replicas=*/1, /*num_cores_per_replica=*/1, {}, &compile_metadata)));
    
      tensorflow::tpu::TPUCompileMetadataProto expected_compile_metadata;
      ASSERT_TRUE(tsl::protobuf::TextFormat::ParseFromString(
          R"pb(
            num_replicas: 1 num_cores_per_replica: 1
          )pb",
          &expected_compile_metadata));
    
      EXPECT_THAT(compile_metadata, EqualsProto(expected_compile_metadata));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 12 04:22:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/parse_text_proto.cc

    }
    
    Status ParseTextProto(absl::string_view text_proto,
                          absl::string_view prefix_to_strip,
                          protobuf::Message* parsed_proto) {
      protobuf::TextFormat::Parser parser;
      // Don't produce errors when attempting to parse text format as it would fail
      // when the input is actually a binary file.
      NoOpErrorCollector collector;
      parser.RecordErrorsTo(&collector);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/instrumentations/save_report_test.cc

    namespace {
    
    using ::stablehlo::quantization::QuantizationResults;
    using ::stablehlo::quantization::io::ReadFileToString;
    using ::testing::SizeIs;
    using ::testing::StrEq;
    using ::tsl::protobuf::TextFormat;
    using ::tsl::testing::IsOk;
    using ::tsl::testing::StatusIs;
    
    using SaveQuantizationReportInstrumentationTest = QuantizationTestBase;
    
    TEST_F(SaveQuantizationReportInstrumentationTest, SaveReport) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

    using ::stablehlo::quantization::FunctionNameMatcherSpec;
    using ::stablehlo::quantization::Method;
    using ::stablehlo::quantization::QuantizationSpec;
    using ::stablehlo::quantization::QuantizationSpecs;
    using ::tsl::protobuf::TextFormat;
    
    // TODO - b/303543789: Move the helper functions below to a separate util.
    // Fetches the default or null attribute, used for pattern matching.
    Attribute DefaultOrNullAttr(OpBuilder& builder, const Attribute& attr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/runlit.cfg.py

    # pylint: disable=undefined-variable
    # Configuration file for the 'lit' test runner.
    
    # name: The name of this test suite.
    config.name = 'MLIR ' + os.path.basename(config.mlir_test_dir)
    
    config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
    
    # suffixes: A list of file extensions to treat as test files.
    config.suffixes = ['.cc', '.hlo', '.json', '.mlir', '.pbtxt', '.py']
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 18:52:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. 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)
Back to top