Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 277 for mlir_context (0.3 sec)

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

      // error reporting system.
      mlir::StatusScopedDiagnosticHandler error_handler(mlir_context);
    
      // Parse the module.
      *mlir_module = mlir::parseSourceString<mlir::ModuleOp>(serialized_mlir_module,
                                                             mlir_context);
      if (!*mlir_module)
        return error_handler.Combine(
            errors::InvalidArgument("could not parse MLIR module"));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets.cc

    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace mhlo {
    
    ConversionTarget GetDefaultLegalConversionTargets(MLIRContext& mlir_context,
                                                      bool legalize_chlo) {
      ConversionTarget target(mlir_context);
    
      if (legalize_chlo) {
        target.addIllegalDialect<chlo::ChloDialect>();
        target.addIllegalDialect<stablehlo::StablehloDialect>();
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 17:44:14 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc

      xla::XlaBuilder builder(
          ::testing::UnitTest::GetInstance()->current_test_info()->name());
      mlir::MLIRContext mlir_context;
      llvm::SmallVector<xla::XlaOp, 4> xla_params;
      std::vector<xla::XlaOp> returns(1);
      return BuildHloFromGraph(graph, builder, mlir_context, xla_params, returns,
                               use_output_shapes, /*args=*/{},
                               /*control_rets=*/{}, DEVICE_TPU,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 19:54:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      mlir::DialectRegistry mlir_registry;
      RegisterDialects(mlir_registry);
      mlir::MLIRContext mlir_context(mlir_registry);
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module;
    
      TF_RETURN_IF_ERROR(
          DeserializeMlirModule(mlir_module_string, &mlir_context, &mlir_module));
      llvm::SmallVector<TensorOrResourceShape, 4> tensor_or_resource_shapes;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

    ABSL_DEPRECATED(
        "Use v1/compile_tf_graph.h::CompileTensorflowGraphToHlo instead.")
    Status BuildHloFromGraph(
        const Graph& graph, xla::XlaBuilder& builder,
        mlir::MLIRContext& mlir_context, llvm::ArrayRef<xla::XlaOp> xla_params,
        std::vector<xla::XlaOp>& returns, bool unconditionally_use_output_shapes,
        llvm::ArrayRef<XlaArgument> args, llvm::ArrayRef<std::string> control_rets,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

    namespace {
    
    using ::testing::Eq;
    using ::testing::IsFalse;
    using ::testing::IsTrue;
    
    static void RegisterDialects(mlir::MLIRContext &context) {
      context.loadDialect<mlir::TF::TensorFlowDialect>();
    }
    
    TEST(ConvertTypeToTensorTypeTest, UnrankedTensorType) {
      mlir::MLIRContext context;
      RegisterDialects(context);
      mlir::Builder b(&context);
    
      PartialTensorShape output_shape =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/context.h

    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    
    namespace mlir::quant::stablehlo {
    
    // Creates an MLIRContext with the extensions required for quantization are
    // registered.
    inline std::unique_ptr<MLIRContext> CreateMlirContextForQuantization() {
      DialectRegistry registry{};
      func::registerAllExtensions(registry);
      return std::make_unique<MLIRContext>(registry);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 11 16:08:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.h

    #include "absl/strings/string_view.h"
    #include "absl/types/span.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    #include "tensorflow/cc/saved_model/loader.h"
    #include "tensorflow/compiler/mlir/tensorflow/translate/mlir_import_options.h"
    
    namespace tensorflow {
    
    using tsl::Status;
    using tsl::StatusOr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/import_model.h

        const GraphImportConfig& specs, mlir::MLIRContext* context);
    
    // Given a Graph, returns a MLIR module containing the graph, expressed with
    // tf_executor dialect.
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> ConvertGraphToMlir(
        const Graph& graph, const GraphDebugInfo& debug_info,
        const FunctionLibraryDefinition& flib_def, const GraphImportConfig& specs,
        mlir::MLIRContext* context);
    
    // [Experimental]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top