Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 384 for mlir_context (0.4 sec)

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

      mlir::RegisterAllTensorFlowDialects(mlir_registry);
      mlir::MLIRContext mlir_context(mlir_registry);
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module_with_add, mlir_module_with_sub;
      TF_ASSERT_OK(DeserializeMlirModule(module_with_add, &mlir_context,
                                         &mlir_module_with_add));
      TF_ASSERT_OK(DeserializeMlirModule(module_with_sub, &mlir_context,
                                         &mlir_module_with_sub));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/utils/serialize_mlir_module_utils.h

    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    
    // Prints a MLIR module `module_op` and returns it as a string.
    std::string SerializeMlirModule(mlir::ModuleOp module_op);
    
    // Parses a MLIR module from `mlir_module_string` into `mlir_module` with
    // context `mlir_context`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/utils/data_dumper_logger_config_test.cc

    TEST(DataDumperLoggerConfig, TestPassFilter) {
      mlir::DialectRegistry mlir_registry;
      mlir::RegisterAllTensorFlowDialects(mlir_registry);
      mlir::MLIRContext mlir_context(mlir_registry);
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module_with_add;
      TF_ASSERT_OK(DeserializeMlirModule(module_with_add, &mlir_context,
                                         &mlir_module_with_add));
    
      std::unique_ptr<mlir::Pass> partitioning_pass =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 00:41:24 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets.h

    // If legalize_chlo is true, the resulting conversion target cannot have CHLO.
    mlir::ConversionTarget GetDefaultLegalConversionTargets(
        MLIRContext& mlir_context, bool legalize_chlo);
    
    }  // namespace mhlo
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top