Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for RegisterCommonToolingDialects (0.34 sec)

  1. tensorflow/compiler/mlir/register_common_dialects.h

    #define TENSORFLOW_COMPILER_MLIR_REGISTER_COMMON_DIALECTS_H_
    
    #include "mlir/IR/DialectRegistry.h"  // from @llvm-project
    
    namespace mlir {
    
    // Inserts common Tensorflow dialects used for offline tools.
    void RegisterCommonToolingDialects(mlir::DialectRegistry& registry);
    
    };  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 21 20:13:57 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/register_common_dialects_test.cc

    #include <gtest/gtest.h>
    #include "mlir/IR/DialectRegistry.h"  // from @llvm-project
    
    namespace mlir {
    namespace {
    
    TEST(RegisterCommonDialectsTest, DoesntCrash) {
      mlir::DialectRegistry registry;
    
      mlir::RegisterCommonToolingDialects(registry);
    
      EXPECT_FALSE(registry.getDialectNames().empty());
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 21 20:13:57 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/test_utils.cc

    using ::mlir::OwningOpRef;
    using ::tsl::StatusOr;
    
    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        absl::string_view module_string, MLIRContext* context) {
      DialectRegistry mlir_registry;
      RegisterCommonToolingDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
    
      OwningOpRef<ModuleOp> mlir_module;
      auto status =
          tensorflow::DeserializeMlirModule(module_string, context, &mlir_module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/logging_hooks_test.cc

      return tensorflow::GetDataDependencyFilepath(
          "tensorflow/compiler/mlir/tf2xla/internal/testdata/");
    }
    
    class LoggingHooksTest : public ::testing::Test {
     public:
      LoggingHooksTest() {
        mlir::RegisterCommonToolingDialects(registry_);
        context_.appendDialectRegistry(registry_);
        context_.loadAllAvailableDialects();
        env_ = Env::Default();
    
        test_group_name_ = "TestGroup";
        test_dir_ = testing::TmpDir();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf_mlir_reduce_main.cc

        populateWithGenerated(patterns);
      }
    };
    
    }  // namespace
    
    int main(int argc, char *argv[]) {
      tensorflow::InitMlir y(&argc, &argv);
    
      mlir::DialectRegistry registry;
      mlir::RegisterCommonToolingDialects(registry);
    
      registry.addExtension(
          +[](mlir::MLIRContext *ctx, mlir::TF::TensorFlowDialect *dialect) {
            dialect->addInterfaces<TFReductionPatternInterface>();
          });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 21 20:13:57 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

        count++;
        idx = str.find(substr, idx + 1);
      }
      return count;
    }
    
    class TensorflowDialectToExecutorTest : public ::testing::Test {
     public:
      TensorflowDialectToExecutorTest() {
        mlir::RegisterCommonToolingDialects(registry_);
        context_.appendDialectRegistry(registry_);
        context_.loadAllAvailableDialects();
      }
    
      absl::Status CreateMlirModule(std::string mlir_module_filename) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/register_common_dialects.cc

    #include "tensorflow/compiler/mlir/tools/kernel_gen/ir/tf_framework_ops.h"
    #include "xla/mlir/framework/ir/xla_framework.h"
    #include "xla/mlir_hlo/mhlo/IR/register.h"
    
    namespace mlir {
    
    void RegisterCommonToolingDialects(mlir::DialectRegistry& registry) {
      mlir::RegisterAllTensorFlowDialects(registry);
      mlir::mhlo::registerAllMhloDialects(registry);
      mlir::registerAllDialects(registry);
      mlir::registerAllExtensions(registry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 22:45:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

    // correctness test versus a test to easily ensure the op registry is kept
    // in sync.
    TEST_F(LegalizationOpConfigTest, CountAllMlirLoweringPatterns) {
      DialectRegistry dialect_registry;
      mlir::RegisterCommonToolingDialects(dialect_registry);
    
      MLIRContext context(dialect_registry);
      context.loadAllAvailableDialects();
    
      RewritePatternSet mlir_legalize_lower_patterns(&context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/cluster_tf_test.cc

          "tensorflow/compiler/mlir/tf2xla/api/v1/testdata/");
    }
    
    class SessionClusterTensorflowDialectTest : public ::testing::Test {
     public:
      SessionClusterTensorflowDialectTest() {
        mlir::RegisterCommonToolingDialects(registry_);
        context_.appendDialectRegistry(registry_);
        context_.loadAllAvailableDialects();
      }
    
      absl::Status CreateMlirModule(std::string mlir_module_filename) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor_test.cc

          "tensorflow/compiler/mlir/tf2xla/api/v1/testdata/");
    }
    
    class TensorflowDialectToExecutorTest : public ::testing::Test {
     public:
      TensorflowDialectToExecutorTest() {
        mlir::RegisterCommonToolingDialects(registry_);
        context_.appendDialectRegistry(registry_);
        context_.loadAllAvailableDialects();
      }
    
      absl::Status CreateMlirModule(std::string mlir_module_filename) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top