Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for GetMlirModuleFromString (0.47 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/cluster_util_test.cc

    #include "tsl/lib/core/status_test_util.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir::TF {
    
    namespace {
    
    constexpr StringRef kTestClusterName = "tpu0";
    
    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        StringRef string, MLIRContext* context) {
      DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
      OwningOpRef<ModuleOp> mlir_module;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass_test.cc

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    namespace {
    
    using mlir::mhlo::test::GetMlirModuleFromString;
    
    class VerifyClusteringPassTest : public testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
        pm_ = std::make_unique<mlir::PassManager>(&context_);
    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/tensorflow/utils/xla_rewrite_util_test.cc

    #include "tensorflow/core/util/device_name_utils.h"
    
    // #include <gmock/gmock.h>
    // #include <gtest/gtest.h>
    
    namespace tensorflow {
    namespace {
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GetMlirModuleFromString(
        llvm::StringRef string, mlir::MLIRContext* context) {
      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc

    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::mlir::mhlo::test::GetMlirModuleFromString;
    
    class VerifyNoOutsideCompilationMarkersPassTest : public ::testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass_test.cc

    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    namespace {
    
    using ::mlir::LogicalResult;
    using ::mlir::ModuleOp;
    using ::mlir::mhlo::test::GetMlirModuleFromString;
    using ::tensorflow::monitoring::testing::CellReader;
    
    constexpr char kNotDynamicFunctionName[] = "kNotDynamicFunction";
    constexpr char kDynamicFunctionName[] = "kDynamicFunction";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 19:42:09 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass_test.cc

    namespace mlir {
    namespace tf2xla {
    namespace internal {
    namespace {
    
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::mlir::mhlo::test::GetMlirModuleFromString;
    using ::tensorflow::monitoring::testing::CellReader;
    
    static constexpr char kHasTpuPartitionedCallStreamzName[] =
        "/tensorflow/core/tf2xla/internal/inference/tpu_partitioned_call";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc

    namespace {
    
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::mlir::PassManager;
    using ::tensorflow::monitoring::testing::CellReader;
    
    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        absl::string_view module_string, MLIRContext* context) {
      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc

    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace {
    
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::mlir::mhlo::test::GetMlirModuleFromString;
    using ::tensorflow::monitoring::testing::CellReader;
    
    static constexpr char kFailedLegalizationStreamz[] =
        "/tensorflow/core/tf2xla/mlir_second_phase_failed_legalization_op_count";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/test_utils.h

    namespace mlir {
    namespace mhlo {
    namespace test {
    
    // Given a raw string, return a ModuleOp that can be used with the given
    // MLIRContext.
    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        absl::string_view module_string, MLIRContext* mlir_context);
    
    }  // namespace test
    }  // namespace mhlo
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/test_utils.cc

    namespace mhlo {
    namespace test {
    
    using ::mlir::DialectRegistry;
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    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);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top