- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 81 for legalize (0.15 sec)
-
tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc
func.return } })"; // MLIR which should not legalize at all static constexpr char kBadMlirModuleStr[] = R"( module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} { func.func @main() -> () { %0 = tf.Unknown() -> () func.return %0 } })"; // MLIR which should be filtered by the MLIR bridge but fully legalize with the // combined bridge.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 23:59:33 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
constexpr char kTfLiteInputIndices[] = "_tflite_input_indices"; // Legalize operations in functions. class LegalizeTFPass : public impl::LegalizeTFPassBase<LegalizeTFPass> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeTFPass) LegalizeTFPass() = default; explicit LegalizeTFPass(bool run_tfl_runtime_verification, bool preserve_assert_op) {
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/transforms/tf2xla_rewriter_test.cc
return WalkResult::interrupt(); } return WalkResult::advance(); }); if (walk_result.wasInterrupted()) { return tsl::errors::Internal("Could not legalize all ops"); } return absl::OkStatus(); } mlir::func::FuncOp GetMainFunc() { func::FuncOp main_func = module_->lookupSymbol<mlir::func::FuncOp>("main"); EXPECT_TRUE(main_func);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 11.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc
public: explicit TflToStablehloPass() : PassWrapper() {} StringRef getArgument() const final { return "tfl-parse-stablehlo-ops"; } StringRef getDescription() const final { return "This pass will legalize TFLite custom Ops to StableHLO ops."; } private: void runOnOperation() override; void getDependentDialects(DialectRegistry& registry) const override {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
OperationPass<ModuleOp>> { public: StringRef getArgument() const final { return "tf-xla-call-module-op-to-stablehlo-pass"; } StringRef getDescription() const final { return "Legalize TF_XlaCallModule Op to stablehlo"; } void getDependentDialects(DialectRegistry ®istry) const override { registry.insert<stablehlo::StablehloDialect, vhlo::VhloDialect,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 25 09:43:18 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc
// `lower_static_tensor_list` pass. return element_type->isF32() || element_type->isInteger(64) || element_type->isInteger(32) || element_type->isInteger(1); } // Only legalize TensorFlow TensorList ops if all TensorList ops are supported // natively. class LegalizeTensorListPass : public impl::LegalizeTensorListPassBase<LegalizeTensorListPass> { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 10.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
[TF_UnsortedSegmentMaxOp, TFL_UnsortedSegmentMaxOp], [TF_UnsortedSegmentMinOp, TFL_UnsortedSegmentMinOp], [TF_UnsortedSegmentProdOp, TFL_UnsortedSegmentProdOp]] in { def Legalize#UnsortedSegmentOp[0] : Pat<(UnsortedSegmentOp[0] $data, $segment_ids, $num_segments), (UnsortedSegmentOp[1] $data, (CreateTFCastToInt32Op $segment_ids),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 28.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/tfl_legalize_hlo.mlir
// COM: This file is there to check that the `tfl-legalize-hlo` pass exists in `odml-to-stablehlo-opt`. // RUN: odml-to-stablehlo-opt %s -tfl-legalize-hlo -split-input-file | FileCheck %s --dump-input=fail func.func @main(%arg0: tensor<5x7xf32>) -> tensor<5x7xf32> { func.return %arg0: tensor<5x7xf32> // CHECK-LABEL: main // CHECK: return %arg0 : tensor<5x7xf32> } // - transpose //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 40.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/convert-tf-quant-types.mlir
} // ----- func.func @tf_const_invalid_proto() -> tensor<2x!tf_type.qint32> { // expected-error@+2 {{failed to get DenseElementAttr}} // expected-error@+1 {{failed to legalize operation 'tf.Const'}} %0 = "tf.Const"() { value = #tf_type<tensor_proto : "0x2532"> : tensor<2x!tf_type.qint32> } : () -> tensor<2x!tf_type.qint32> func.return %0 : tensor<2x!tf_type.qint32> } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 25.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/passes.h
// (either defined in TensorArrayV3 or implied in the first write). std::unique_ptr<OperationPass<ModuleOp>> CreateTensorArrayOpsDecompositionPass(); // Create a pass that legalize TFG to TF dialect. std::unique_ptr<Pass> CreateLegalizeTFGToTFEPass(); // Matches sequence of ops to TensorFlow fused kernels. This pass should not be
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 31.8K bytes - Viewed (0)