- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 293 for runOnOperation (0.39 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h
: public PassWrapper<LiftVariablesTestPass, OperationPass<ModuleOp>> { public: LiftVariablesTestPass() { session_ = new FakeSession(); } ~LiftVariablesTestPass() override { delete session_; } void runOnOperation() override { ModuleOp module = getOperation(); if (failed(LiftVariables(module, session_))) signalPassFailure(); } private: Session* session_; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 21 15:49:06 UTC 2022 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc
// Removes unused results and related ops from while loops. struct RemoveUnusedWhileResultsPass : public impl::RemoveUnusedWhileResultsPassBase< RemoveUnusedWhileResultsPass> { void runOnOperation() override; }; // Prunes result defining op if possible, returns true if pruning was done. bool TryPruneResultDefiningOp(TF::WhileRegionOp while_op, OpResult result) { // Don't prune if result is used.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 16 01:49:07 UTC 2022 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/batchmatmul_to_einsum.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc" struct BatchMatMulToEinsumPass : public impl::BatchMatMulToEinsumPassBase<BatchMatMulToEinsumPass> { void runOnOperation() override; }; void BatchMatMulToEinsumPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); patterns.add<ConvertTFBatchMatMulToEinsumOp<TF::BatchMatMulOp>,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc
struct ExecutorTPUV1IslandInliningPass : public impl::ExecutorTPUV1IslandInliningPassBase< ExecutorTPUV1IslandInliningPass> { void runOnOperation() override; }; void ExecutorTPUV1IslandInliningPass::runOnOperation() { SymbolTable symbol_table(getOperation()); Operation *nested_module = symbol_table.lookup(kNestedModule); if (!nested_module) return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/verify_quant_legalization.cc
#include "tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.h.inc" class VerifyQuantLegalization : public impl::VerifyQuantLegalizationBase<VerifyQuantLegalization> { public: void runOnOperation() override; }; bool IsQuantType(Type type) { auto element_type = getElementTypeOrSelf(type); return mlir::isa<quant::UniformQuantizedType>(element_type) || IsTFQintType(element_type); }
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/lite/quantization/ir/ConvertConst.cc
namespace { #define GEN_PASS_DEF_QUANTCONVERTCONST #include "tensorflow/compiler/mlir/lite/quantization/ir/Passes.h.inc" struct ConvertConstPass : public impl::QuantConvertConstBase<ConvertConstPass> { void runOnOperation() override; }; struct QuantizedConstRewrite : public OpRewritePattern<QuantizeCastOp> { using OpRewritePattern<QuantizeCastOp>::OpRewritePattern; LogicalResult matchAndRewrite(QuantizeCastOp qbarrier,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc
: public impl::TensorDeviceCopyConversionPassBase< TensorDeviceCopyConversionPass> { void runOnOperation() override; }; // Folds tf.IdentityOp and tf.IdentityNOp if op device and the argument devices // from the defining ops match. void TensorDeviceCopyConversionPass::runOnOperation() { func::FuncOp func_op = getOperation(); auto should_fold_op_func = [&func_op](const Value &arg,
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/quantization/stablehlo/passes/testing/test_lift_quantizable_spots_as_functions_with_quantization_specs.cc
TestLiftQuantizableSpotsAsFunctionsWithQuantizationSpecsPassBase; MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID( TestLiftQuantizableSpotsAsFunctionsWithQuantizationSpecsPass) private: void runOnOperation() override; }; // `TestQuantizationSpecs` -> predefined `QuantizationSpecs` textproto. absl::string_view GetQuantizationSpecsTextProto( const TestQuantizationSpecs test_specs) { switch (test_specs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 23:21:42 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc
return "quant-convert-tpu-model-to-cpu"; } StringRef getDescription() const final { return "Convert TPU models to CPU by rewriting TPU related operations."; } void runOnOperation() override; }; class RemoveTpuOp : public RewritePattern { public: explicit RemoveTpuOp(MLIRContext* context) : RewritePattern(MatchAnyOpTypeTag(), /*benefit=*/1, context) {} private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc
// invoked functions whether each input has the same data across replicas. struct AnnotateParameterReplicationPass : public impl::AnnotateParameterReplicationPassBase< AnnotateParameterReplicationPass> { void runOnOperation() override; }; // Returns the first value in the chain of operands, which is not defined by a // tf.IdentityOp or a tf.ReadVariableOp. Value SkipIdentityAndReadVariable(Value v) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0)