- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 84 for legalized (0.28 sec)
-
tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc
} if (failed(mlir::tf_saved_model::FreezeVariables( module_op, saved_model_bundle->GetSession()))) { return absl::InternalError("Failed to freeze variables."); } // Run legalize TF to StableHLO pass to convert `tf.Const` and // `tf.Const`->`tf.Cast` patterns after variable freezing. The TF shape // inference pass is also required to resolve unknown shapes in the TF dialect
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 10:49:12 UTC 2024 - 7.3K bytes - Viewed (0) -
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/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) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskConfigurationIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 13:27:33 UTC 2024 - 12.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/verify_quant_legalization.cc
==============================================================================*/ // The TF dialect uses some TF types that are illegal in the MHLO dialect and // some generic types that are legal in MHLO. This pass legalizes TF types into // types that are legal in MHLO. For example, TF::Qint8Type is converted to i8. // Rewrites here should run before TF to MHLO op legalizations are run. #include <memory> #include "absl/log/log.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.h
const ::stablehlo::quantization::DebuggerConfig& debugger_config); // Deserializes StableHLO functions serialized and embedded in XlaCallModuleOps. void AddXlaCallModuleOpDeserializationPasses(OpPassManager& pm); // Legalizes shape/tensor/arith dialect ops to StableHLO for handling dynamic // shapes, by going through a round-trip to MHLO. void AddShapeLegalizationPasses(OpPassManager& pm);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 12:53:33 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc
/*allow_mutable_tensors=*/true)); // Generic MLIR optimization passes. pm.addPass(mlir::createCanonicalizerPass()); pm.addPass(mlir::TF::CreateTFShapeInferencePass()); // Legalizes TF UniformQuantized types into MHLO. pm.addNestedPass<func::FuncOp>( mlir::quant::stablehlo::CreateConvertTFQuantOpsToMHLOPass()); pm.addPass(mlir::createCanonicalizerPass()); // TF -> StableHLO legalization.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 04:34:23 UTC 2024 - 5.8K 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) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskCreationBuildOperationIntegrationTest.groovy
progress[0].details.message.startsWith("configure") } } } @ToBeFixedForIsolatedProjects(because = "Investigate") def "emits registration build ops when tasks not realized"() { given: stopBeforeTaskGraphCalculation() register('foo') when: runAndFail() then: verifyTaskIds()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 20 11:16:24 UTC 2024 - 12.6K bytes - Viewed (0)