- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 90 for legalized (0.12 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/passes.h
/// allow_partial_conversion is false, emits an error if there is any operation /// that can't be legalized. /// When `tf2xla_fallback_device_type` is not `None`, also uses legalization /// patterns from TF2XLA fallback for provided device type (see /// legalize_tf_with_tf2xla.cc for details). By default, TF2XLA fallback is not /// used. LogicalResult legalizeTF( Operation* op, bool allow_partial_conversion = false, bool legalize_chlo = true,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc
if (IsSupportedTFCustomOp(op)) return WalkResult::advance(); // Check for ops that are legalized to TFLite. if (op->getDialect()->getNamespace() == "tfl") { return WalkResult::advance(); } // Check for ops that are not legalized to TFLite. if (IsSupportedTFDataForwardingOp(op)) { return WalkResult::advance(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
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/legalize_variables.cc
namespace mlir { namespace TFL { namespace { #define GEN_PASS_DEF_LEGALIZEVARIABLESPASS #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc" // Attribute name to identify whether variables should be legalized to TFLite or // not. const char kLegalizeTflVariables[] = "tfl._legalize_tfl_variables"; bool HasSupportedElementType(Operation* op) { return utils::IsSupportedVariableType(op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc
EXPECT_FALSE(IsDynamicPadderOp(TypeID::get<TF::ConstOp>())); } // This test is kind of odd. We go through all the Tensorflow types and check // whether they are legalized with MLIR, TF2XLA, or both. Ideally the sets are // disjoint, but until that happens, this tests ensures that the set doesn't // grow. TEST_F(LegalizationOpConfigTest, CountLoweringsSet) { int mlir_lowering_count = 0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 30 03:31:01 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h
} return success(); } virtual bool IsValueInitValue(const DenseElementsAttr& attr) const = 0; }; // Returns true if the given reduce op can be legalized to ArgMax/ArgMin ops. std::optional<bool> IsReduceOpLegal(mhlo::ReduceOp reduce_op); } // namespace odml } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/split_merged_operands.cc
if (inserted_value) continue; // We can only clone the constant op or const->dequantize combo. The latter // case is useful for float16 quantization. Since all ops have been // legalized to tflite ops, so we only care about ConstOp or QConstOp or // mlir constant op. Operation* input_op = operand.getDefiningOp(); if (input_op == nullptr) return failure(); Attribute attr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 5.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/optimize_batch_matmul.cc
Value output_lhs = bmm_op.getAdjX() ? create_z_x_transpose_op(input_lhs) : input_lhs; // The rhs need to be transposed if adj_y == false AND this matmul will be // legalized to tfl.fully_connected Value output_rhs = !bmm_op.getAdjY() ? create_z_x_transpose_op(input_rhs) : input_rhs; Type output_type = bmm_op.getResult().getType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.6K 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)