Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for XlaCompilationResult (0.27 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc

        }
      })";
    
    TEST(LegalizeMlirTest, LegalizesModule) {
      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
    
      std::vector<tensorflow::TensorShape> arg_shapes;
      XlaCompilationResult compilation_result;
      auto status = CompileSerializedMlirToXlaHlo(
          kMlirModuleStr, arg_shapes, /*device_type=*/"XLA_TPU_JIT",
          /*use_tuple_args=*/true, /*enable_op_fallback=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 19:54:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf.cc

        } break;
        default:
          VLOG(2) << "LegalizeMlirToHlo computation input: unknown";
          break;
      }
    }
    
    Status DumpHloCompilationResult(std::string_view name,
                                    XlaCompilationResult* compilation_result) {
      if (!VLOG_IS_ON(2) &&
          !DEBUG_DATA_DUMPER()->ShouldDump(std::string(name), kDebugGroupMain)) {
        return absl::OkStatus();
      }
    
      TF_ASSIGN_OR_RETURN(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 00:40:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

                          llvm::MutableArrayRef<std::unique_ptr<mlir::Pass>>
                              custom_legalization_passes);
    
    // Apply shape, description, and resource information to inputs and outputs
    // in the XlaCompilationResult. This should be called after
    // compilation_result->computation was set.
    ABSL_DEPRECATED("Not meant to be used directly and should be a util.")
    Status PopulateResultIOInfo(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo.h

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    // Legalize the given MLIR module to XLA HLO using a combination of the MLIR
    // Bridge and XlaBuilder
    absl::StatusOr<XlaCompilationResult> LegalizeTfToHlo(
        const tpu::MlirToHloArgs& computation,
        const tpu::TPUCompileMetadataProto& metadata, bool use_tuple_args,
        llvm::StringRef device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir.h

        std::vector<std::vector<xla::Shape>>* per_core_arg_shapes);
    
    // Compiles a serialized MLIR module into XLA HLO, generates all accompanying
    // metadata and stores them in CompilationResult.
    absl::StatusOr<XlaCompilationResult> LegalizeWithMlirBridge(
        const tpu::MlirToHloArgs& computation,
        const tpu::TPUCompileMetadataProto& metadata, bool use_tuple_args,
        llvm::StringRef device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo.cc

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    using metrics::IncrementTfMlirBridgeSecondPhaseCounter;
    using metrics::MlirBridgeSecondPhaseMetric;
    using tpu::MlirToHloArgs;
    
    absl::StatusOr<XlaCompilationResult> LegalizeTfToHlo(
        const tpu::MlirToHloArgs& computation,
        const tpu::TPUCompileMetadataProto& metadata, bool use_tuple_args,
        llvm::StringRef device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir_test.cc

      std::vector<std::vector<xla::Shape>> per_core_arg_shapes;
      std::vector<std::unique_ptr<mlir::Pass>> custom_legalization_passes;
    
      auto compilation_result = std::make_unique<XlaCompilationResult>();
    
      return CompileFromMlirToXlaHlo(
          compile_to_xla_hlo, mlir_to_hlo_args, metadata_proto,
          /*device_type=*/"XLA_TPU_JIT",
          /*shape_determination_fns=*/{}, use_tuple_args, compilation_result.get(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/test_matchers_test.cc

      CellReader<int64_t> reader(kMetric);
    
      ASSERT_THAT(failed(), Not(IncrementedOrFiltered(reader.Delta(kOkStatus), 1)));
    }
    
    tensorflow::XlaCompilationResult CreateXlaComputationResult(
        const char* hlo_name) {
      auto result = tensorflow::XlaCompilationResult();
      xla::HloModuleProto hlo;
      hlo.set_name(hlo_name);
      result.computation = std::make_shared<xla::XlaComputation>(hlo);
      return result;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir.cc

                               arg_core_mapping, per_core_arg_shapes);
      if (!sharding_result.ok()) {
        return sharding_result;
      }
      return compiled_mlir;
    }
    
    absl::StatusOr<XlaCompilationResult> LegalizeWithMlirBridge(
        const tpu::MlirToHloArgs& computation,
        const tpu::TPUCompileMetadataProto& metadata, bool use_tuple_args,
        llvm::StringRef device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf.h

    //  arg_core_mapping - Which args go on which cores.
    //  per_core_arg_shapes - For each core, the shapes for each argument.
    //  client - The Xla Compilation client.
    absl::StatusOr<tensorflow::XlaCompilationResult> LegalizeMlirToHlo(
        const std::variant<tpu::MlirToHloArgs, tpu::FunctionToHloArgs>& computation,
        const tpu::TPUCompileMetadataProto& metadata, bool use_tuple_args,
        llvm::StringRef device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 07:32:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top