Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 435 for ModuleOp (0.13 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

      func.return %0 : tensor<i32>
    }
    )mlir";
      mlir::MLIRContext context;
      context.loadDialect<mlir::func::FuncDialect, mlir::TF::TensorFlowDialect>();
      mlir::OwningOpRef<mlir::ModuleOp> module =
          mlir::parseSourceString<mlir::ModuleOp>(code, &context);
      ASSERT_TRUE(module);
      EXPECT_TRUE(IsSupportedByReplicatedBridge(*module));
    }
    
    TEST(HasTPUPartitionedCallOpInModule, HasTPUPartitionedCallModule) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

    //
    // The constants whose sizes are smaller than `size_threshold_in_bytes_` will
    // not be converted to variables.
    class UnfreezeConstantsPass
        : public PassWrapper<UnfreezeConstantsPass, OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(UnfreezeConstantsPass)
    
      explicit UnfreezeConstantsPass()
          : UnfreezeConstantsPass(kDefaultConstantSizeThresholdInBytes) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/debugger.cc

    #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/tf_quant_ops.h"
    
    namespace stablehlo::quantization {
    
    void DisableDebugging(mlir::ModuleOp module_op) {
      module_op.walk(
          [](mlir::TF::DumpTensorOp dump_op) { dump_op.setEnabled(false); });
    }
    
    void ChangeToQuantizedFilename(mlir::ModuleOp module_op) {
      module_op.walk([](mlir::TF::DumpTensorOp dump_op) {
        dump_op.setFileName("quantized_tensor_data.pb");
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 00:17:12 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.h

        mlir::ModuleOp module, const GraphExportConfig& configs);
    
    // Converts an MLIR module to TensorFlow graph and FunctionLibraryDefinition.
    // The "main" function of the module is stored in the graph and the rest of
    // functions are stored in the library. Control ret nodes are stored separately
    // in `control_ret_nodes`.
    Status ConvertMlirToGraph(mlir::ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc

                                           /*RequiresNullTerminator=*/false);
    
      llvm::SourceMgr source_mgr;
      source_mgr.AddNewSourceBuffer(std::move(mem_buffer), llvm::SMLoc());
      OwningOpRef<ModuleOp> module_ref =
          parseSourceFile<ModuleOp>(source_mgr, module.getContext());
      // Inline and optimize loaded functions.
      MLIRContext* context = &getContext();
      PassManager pm(context);
      pm.addPass(createInlinerPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

      }
    
      llvm::SourceMgr source_mgr;
      source_mgr.AddNewSourceBuffer(std::move(file), llvm::SMLoc());
      return OwningOpRef<mlir::ModuleOp>(
          parseSourceFile<mlir::ModuleOp>(source_mgr, context));
    }
    
    TEST(ErrorCollectorTest, TessSuccessPass) {
      std::string input_file = tensorflow::GetDataDependencyFilepath(
          "tensorflow/compiler/mlir/lite/metrics/testdata/strided_slice.mlir");
      MLIRContext context;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
      OwningOpRef<mlir::ModuleOp> mlir_module_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

            absl::StrCat("Failed to open input file: ", error_message));
      }
    
      if (input_mlir) {
        source_mgr->AddNewSourceBuffer(std::move(file), llvm::SMLoc());
        return OwningOpRef<ModuleOp>(
            mlir::parseSourceFile<mlir::ModuleOp>(*source_mgr, context));
      }
    
      // Register extra TF ops passed as OpDef.
      auto extra_opdefs_status = RegisterExtraTfOpDefs(extra_tf_opdefs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

    // function of type "restore_op" to identify the VarHandleOps that should be
    // saved using the SaveV2 op.
    class InsertSaveOpPass
        : public PassWrapper<InsertSaveOpPass, OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(InsertSaveOpPass)
    
      explicit InsertSaveOpPass() = default;
    
      // The argument used to refer to the pass in the textual format (e.g. on the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/tflite_import_export.h

        // Whether the input file is an MLIR not tflite file.
        bool input_mlir = false;
      };
    
      explicit TfLiteImporter(const Options& options) : options_(options) {}
    
      absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> Import() override;
    
     private:
      Options options_;
      mlir::MLIRContext context_;
      llvm::SourceMgr source_mgr_;
      std::unique_ptr<mlir::SourceMgrDiagnosticHandler> source_mgr_handler_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top