- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 247 for legalize (0.18 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc
registry.insert<shape::ShapeDialect>(); } public: StringRef getArgument() const final { return "tf-mhlo"; } StringRef getDescription() const final { return "This pass will legalize TF Ops to MHLO Ops."; } protected: Option<bool> skip_quantization_ops_{ *this, "skip-quantization-ops", ::llvm::cl::desc("Skip quantization ops")}; Option<bool> skip_resize_{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/legalize_tfg_arg_control_dep.mlir
// RUN: tf-opt -tfe-legalize-tfg %s | FileCheck %s module { tfg.graph #tf_type.version<producer = 62, min_consumer = 12> { %Const, %ctl = Const name("Constant") {dtype = i32, value = dense<0> : tensor<i32>} : () -> (tensor<i32>) %foo, %ctl_0 = foo(%Const) name("_tf.foo") : (tensor<i32>) -> (tensor<*xi32>) } tfg.func @foo(%arg: tensor<*xi32> {tfg.name = "arg"}) -> (tensor<*xi32> {tfg.dtype = i32, tfg.name = "return_value"}) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 06 02:08:28 UTC 2022 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/tfl_legalize_hlo_custom_call.mlir
// RUN: odml-to-stablehlo-opt %s -tfl-legalize-hlo -split-input-file | FileCheck %s --dump-input=fail // CHECK-LABEL: mhlo_custom_call_test__legalize_string_backend_config func.func @mhlo_custom_call_test__legalize_string_backend_config(%arg0: tensor<1x4xf32>) -> tensor<1x8xf32> { %0 = mhlo.custom_call @custom_call.my_custom_op(%arg0) { api_version = 1 : i32, backend_config = "this_is_a_test_string" } : (tensor<1x4xf32>) -> (tensor<1x8xf32>)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc
for (auto arg : block.getArguments()) { ConvertAndWrapUsesInUnrealizedCast(arg, converter, rewriter); } } } }); }); return success(); } // Legalize StableHLO portion of program to VHLO, leaves TFL untouched LogicalResult ApplyStablehloToVhloPatterns(ModuleOp module, bool is_func_legal) { MLIRContext *context = module.getContext();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 19:48:51 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/legalize_tfg.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" namespace mlir { namespace TFL { namespace { #define GEN_PASS_DEF_LEGALIZEWHILEPASS #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc" // Legalize TF While to TFL While with calls to the original functions from the // cond and body regions. struct LegalizeWhilePass : public impl::LegalizeWhilePassBase<LegalizeWhilePass> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h
llvm::SmallVector<Value>& outputs); // Tries to legalize the specified TensorFlow op, if supported. // // Emits an error and returns failure if an error is encountered during // conversion. Note that success return value doesn't mean successful // legalization. mlir::LogicalResult LegalizeOp(); // Converts the given operand to expression of kind kConstant or kXlaOp.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo_test.cc
CellReader<int64_t> counts(kBridgeStatusCounter); auto result = CompileMlirModule(kBadMlirModuleStr); ASSERT_FALSE(result.ok()); // Never failed to legalize because it was never attempted EXPECT_EQ(legalize_failure_count.Read("tf.DoesntExist", "Unknown"), 0); EXPECT_THAT(result, IncrementedOrFiltered(counts.Delta(kMlirCombinedMlirSuccess), 1));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 20:29:34 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/tac_module.h
// This will output different alternative subgraphs in mlir format for debug // purpose. bool debug_mode = false; // Whether to enable inliner passes or not. bool enable_inliner = false; // Whether to legalize ops to TFLite ops before exporting. bool legalize_to_tflite_ops = false; }; virtual ~TacModule() = default; explicit TacModule(const Options& options) : options_(options) {}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc
namespace mlir { namespace TFL { namespace { #define GEN_PASS_DEF_LEGALIZEHASHTABLESPASS #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc" // This file has Legalize hash tables pass which is responsible for: // - Converting static hash table ops to the TFLite equivalent ops. // // There are needs to fall back to Flex for the following cases: // - Mutable hash table cases
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.6K bytes - Viewed (0)