Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for text_format (0.17 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/cc/experimental/libtf/tests/module_test.cc

      const std::string pb_txt = R"pb(
        user_object {
          identifier: "trackable_list_wrapper"
          version { producer: 1 min_consumer: 1 }
        }
      )pb";
    
      ASSERT_TRUE(::tensorflow::protobuf::TextFormat::ParseFromString(
          pb_txt, &saved_object_proto));
      TF_ASSERT_OK_AND_ASSIGN(Handle result,
                              BuildSavedUserObject(saved_object_proto));
      EXPECT_EQ(Cast<tf::libtf::List>(result)->size(), 0);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 15 16:58:38 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/cc/framework/cc_op_gen_test.cc

    TEST(CcOpGenTest, TestVisibilityChangedToHidden) {
      const string api_def = R"(
    op {
      graph_op_name: "Foo"
      visibility: HIDDEN
    }
    )";
      Env* env = Env::Default();
      OpList op_defs;
      protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs);  // NOLINT
      ApiDefMap api_def_map(op_defs);
    
      string h_file_text, internal_h_file_text;
      // Without ApiDef
      GenerateCcOpFiles(env, op_defs, api_def_map, &h_file_text,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 20:04:30 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. tensorflow/c/experimental/saved_model/core/tf_concrete_function_test_protos.cc

            }
            }
            dtype: DT_FLOAT
        }
        }
    }
    )";
    
    StructuredValue ParseStructuredValue(absl::string_view text_proto) {
      StructuredValue value;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(string(text_proto),
                                                              &value));
      return value;
    }
    
    }  // namespace
    
    StructuredValue ZeroArgInputSignature() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 08 07:00:37 UTC 2020
    - 4.4K bytes
    - Viewed (0)
Back to top