- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 63 for legalized (0.24 sec)
-
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h
// . Legalizes control flow operations. // . Decomposes compound resource operations so that the only remaining // operations on resource variables are resource reads/writes.. // . Replaces resource reads/writes with function inputs/outputs and // eliminates the use of resource variables. // . Legalizes the operations to XLA HLO operations.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/passes.h
class OperationPass; class Type; namespace TFL { // Creates an instance of the TensorFlow Lite dialect LegalizeTF pass. // When the given run_tfl_runtime_verification value is true, it will check each // TFL builtin op towards the TFL runtime capability and the incompatible TF ops // will be left in the graph without getting legalized. If `preserve_assert_op` // is true, the TF::AssertOp will not be removed.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 07 21:29:34 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc
TypeID::get<TF::ModOp>(), // MatrixDiagPartV3 should use the MLIR implementation due to performance. TypeID::get<TF::MatrixDiagPartV3Op>(), // Ops that are legalized in the old bridge using MlirXlaOpKernel TypeID::get<TF::AbsOp>(), TypeID::get<TF::AtanOp>(), TypeID::get<TF::AvgPool3DOp>(), TypeID::get<TF::BiasAddGradOp>(), TypeID::get<TF::CeilOp>(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 21.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/passes.td
]; } def LegalizeWhilePass : Pass<"tfl-legalize-tf-while", "mlir::ModuleOp"> { let summary = "Legalize from TensorFlow While to TensorFlow Lite While."; let constructor = "CreateLegalizeTFWhilePass()"; let dependentDialects = ["TFL::TensorFlowLiteDialect"]; } def LegalizeVariablesPass : Pass<"tfl-legalize-variables-tf", "mlir::ModuleOp"> { let summary = "Legalize TensorFlow variables to TensorFlow Lite dialect.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 22.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc
"/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_pass_count", "Counts the failure of legalization of ops", "op_name", "legality"); class LegalizeTF : public impl::LegalizeTFBase<LegalizeTF> { public: explicit LegalizeTF(bool legalize_chlo, std::optional<StringRef> tf2xla_fallback_device_type, bool prefer_tf2xla) { legalize_chlo_ = legalize_chlo;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td
def : Pat<(MHLO_ConstantOp:$output $value), (TF_ConstOp $value), [(TF_Tensor $output)]>; //===----------------------------------------------------------------------===// // Binary op patterns. // Note that these are legalized from chlo.broadcast_* ops, since those are // semantically compatible with the corresponding TF ops. Depending on // context, getting to these ops may require some raising.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Feb 03 08:58:22 UTC 2024 - 34K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
// This transformation pass converts operations in TensorFlow dialect into // operations that are legal in the TensorFlow Lite dialect. Operations that // can be legalized to TensorFlow Lite dialect with simple replacements are part // of this pass and other operations that may create extra ops should be part of // the PrepareTF pass which should be run before this pass. That way any
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
lower_to_xla_hlo); if (lower_to_xla_hlo) { // This pass operates on MHLO control flow ops so it should be legalized // after the control flow ops are legalized. pm.addPass(mlir::mhlo::CreateLegalizeTFCommunicationPass()); // Everything should be MHLO after this. if (!allow_partial_conversion) { pm.addNestedPass<mlir::func::FuncOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.td
} def TFR_TFRQuantRescaleOp : TFR_Op<"quant_rescale", [Pure]> { let description = [{ The `quant_rescale` rescales the elements of the integer tensor by the floating-point rescale factor. This op needs to be legalized to the preferred operations of the backends. Example: ```mlir %3 = tfr.quant_rescale(%2, %1, %0) : (tfr.tensor, tfr.tensor, i64) -> (tfr.tensor) ``` }];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 10:54:29 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-prefer-tf2xla.mlir
// RUN: tf-opt "-xla-legalize-tf=device-type=XLA_CPU_JIT legalize-chlo=false use-tf2xla-fallback=true prefer-tf2xla=true" %s | FileCheck %s // RUN: tf-opt "-xla-legalize-tf=device-type=XLA_CPU_JIT legalize-chlo=false prefer-tf2xla=true" %s | FileCheck --check-prefix NOFALLBACK %s module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} { // CHECK-LABEL: @abs func.func @abs(%arg0: tensor<2xf32>) -> tensor<2xf32> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 15.8K bytes - Viewed (0)