Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for kMlirModuleStr (0.53 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc

      static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
        func.func @main() -> tensor<1xi32> {
          %0 = "tf.Const"() {value = dense<1000> : tensor<1xi32>} : () -> tensor<1xi32>
          func.return %0 : tensor<1xi32>
        }
      })";
    
      CreateModule(kMlirModuleStr);
      auto result = Run();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass_test.cc

    TEST_F(VerifyClusteringPassTest, OnlyTfFunctionalPasses) {
      static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
        func.func @main() -> tensor<1xi32> {
          %0 = "tf.Const"() {value = dense<1000> : tensor<1xi32>} : () -> tensor<1xi32>
          return %0 : tensor<1xi32>
        }
      })";
      CreateModule(kMlirModuleStr);
    
      auto result = Run();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 17:03:53 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass_test.cc

      CellReader<int64_t> error(kHasTpuPartitionedCallStreamzName);
      CreateModule(kMlirModuleStr);
    
      auto result = Run();
    
      EXPECT_TRUE(result.succeeded());
    
      EXPECT_EQ(error.Delta("true"), 1);
      EXPECT_EQ(error.Delta("false"), 0);
    }
    
    TEST_F(InferenceMetricsPassTest, RecordsFalseForNonTPUPartitionedCallOp) {
      static constexpr char kMlirModuleStr[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass_test.cc

          kDynamismFunctionCounterStreamzName);
    
      CreateModule(kMlirModuleStr);
      auto result = Run();
    
      EXPECT_TRUE(result.succeeded());
      EXPECT_EQ(dynamism_function_counter.Delta(kNotDynamicFunctionName), 1);
    }
    
    TEST_F(InputLoweringMetricsPassTest, CountsDynamicOps) {
      static constexpr char kMlirModuleStr[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 19:42:09 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc

        }
      })";
      CreateModule(kMlirModuleStr);
      CellReader<int64_t> reader(kMetricsName);
    
      auto result = Run();
    
      EXPECT_TRUE(result.succeeded());
      EXPECT_EQ(reader.Delta("tf.ConcatV2"), 1);
      EXPECT_EQ(reader.Delta("func.return"), 1);
      EXPECT_EQ(reader.Delta("func.func"), 0);
    }
    
    TEST_F(LegalizeTfTypesTest, RecordsStreamzNoQuantOps) {
      static constexpr char kMlirModuleStr[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 09:05:02 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir_test.cc

    }
    
    TEST(LegalizeWithMlirBridge, LegalizesToMhloProto) {
      auto result = LegalizeMlirModule(kMlirModuleStr);
    
      ASSERT_THAT(result, IsOkOrFiltered());
      EXPECT_THAT(result, ComputationProtoContains("opcode.*constant"));
    }
    
    TEST(CompileFromMlir, ReturnsModuleAsString) {
      auto result = CompileMlirModule(true, kMlirModuleStr);
    
      ASSERT_THAT(result, IsOkOrFiltered());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo_test.cc

    constexpr char kMlirCombinedMlirSuccess[] = "kMlirCombinedMlirSuccess";
    constexpr char kMlirCombinedOldSuccess[] = "kMlirCombinedOldSuccess";
    constexpr char kMlirCombinedOldFailure[] = "kMlirCombinedOldFailure";
    
    static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
      func.func @main(%arg0 : tensor<1xf32>) -> tensor<1xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

    static const char kMlirCombinedOldSuccess[] = "kMlirCombinedOldSuccess";
    static const char kMlirCombinedOldFailure[] = "kMlirCombinedOldFailure";
    
    static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
      func.func @main() -> () {
        func.return
      }
    })";
    
    // MLIR which should not legalize at all
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc

    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace {
    
    using ::mlir::OpPassManager;
    using ::tensorflow::monitoring::testing::CellReader;
    using ::testing::HasSubstr;
    
    static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
        func.func @main() -> tensor<1xi32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 19:54:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc

    };
    
    TEST_F(VerifyTfxlaLegalizationTest, RecordsStreamzFailedVerification) {
      // Using a string constant here instead of testdata to make this compatible
      // with open source.
      static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
        func.func @main() -> tensor<1xi32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top