Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for module_string (0.18 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc

    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        absl::string_view module_string, MLIRContext* context) {
      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
    
      OwningOpRef<ModuleOp> mlir_module;
      auto status =
          tensorflow::DeserializeMlirModule(module_string, context, &mlir_module);
      if (!status.ok()) {
        return status;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/test_utils.cc

    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);
      if (!status.ok()) {
        return status;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass_test.cc

        "/tensorflow/core/tf2xla/api/v2/dynamism_function_counter";
    
    class InputLoweringMetricsPassTest : 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_);
        pm_->addNestedPass<mlir::func::FuncOp>(CreateInputLoweringMetricsPass());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 19:42:09 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

     public:
      void SetUp() override {
        tensorflow::XlaOpRegistry::RegisterCompilationKernels();
      }
    
      Status CreateMlirModule(std::string module_string = kMlirModuleStr) {
        TF_ASSIGN_OR_RETURN(
            module_, test::GetMlirModuleFromString(module_string, &context_));
    
        context_.loadAllAvailableDialects();
        return absl::OkStatus();
      }
    
      Status LegalizeSingleOp(Operation& op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc

    class LegalizeTfTypesTest : public Test {
     protected:
      void CreateModule(const char* module_string) {
        DialectRegistry mlir_registry;
        RegisterCommonToolingDialects(mlir_registry);
        context_.appendDialectRegistry(mlir_registry);
        TF_ASSERT_OK(
            tensorflow::DeserializeMlirModule(module_string, &context_, &module_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
    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/transforms/test_utils.h

    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)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

        return
      }
    })";
    
    class LegalizationOpConfigTest : public ::testing::Test {
     public:
      absl::Status CreateMlirModule(std::string module_string = kMlirModuleStr) {
        TF_ASSIGN_OR_RETURN(
            module_, test::GetMlirModuleFromString(module_string, &context_));
    
        context_.loadAllAvailableDialects();
        return absl::OkStatus();
      }
    
      absl::StatusOr<FuncOp> GetMain() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top