Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 99 for signalPassFailure (0.22 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

        target.addLegalOp<TF::StatefulPartitionedCallOp>();
      }
    
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
      if (failed(applyPartialConversion(func, target, frozen_patterns))) {
        return signalPassFailure();
      }
    }
    
    struct TFToStablehloOptions : public PassPipelineOptions<TFToStablehloOptions> {
      Option<bool> skip_quantization_ops{*this, "skip-quantization-ops",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_custom_aggregation_op_to_quant_stats.cc

      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        func.emitError()
            << "quant-convert-tf-custom-aggregator-op-to-quant-stats failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateConvertCustomAggregationOpToQuantStatsPass() {
      return std::make_unique<ConvertCustomAggregationOpToQuantStatsPass>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("mhlo to TFLite legalization failed.");
        signalPassFailure();
      }
    }
    }  // namespace
    
    void PopulateLegalizeHloToTFLitePatterns(RewritePatternSet* patterns,
                                             MLIRContext* context) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc

            assert(replicated_input->use_empty());
            replicated_input->erase();
            return WalkResult::advance();
          });
    
      if (result.wasInterrupted()) {
        signalPassFailure();
        return;
      }
    
      getOperation()->walk([](TF::TPUPartitionedInputV2Op partitioned_input) {
        if (partitioned_input->use_empty()) partitioned_input->erase();
      });
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 24 23:08:55 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

          has_invalid_ops = true;
          IncrementCounterFor(mlir_failed_legalization_op_count, op);
        }
        return WalkResult::advance();
      });
    
      if (has_invalid_ops) signalPassFailure();
    }
    
    }  // namespace
    
    std::unique_ptr<mlir::OperationPass<mlir::func::FuncOp>>
    CreateVerifyTFXLALegalizationPass(bool legalize_chlo) {
      return std::make_unique<VerifyTFXLALegalization>(legalize_chlo);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc

        mlir::ModuleOp module_op = getOperation();
        mlir::PassManager pm(ctx);
    
        pm.addPass(CreateNoOpPass());
    
        EnableIrPrinting(pm, "dump2");
    
        if (failed(pm.run(module_op))) {
          signalPassFailure();
        }
      }
    };
    
    std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>> CreateParentPass() {
      return std::make_unique<ParentPass>();
    }
    
    }  // namespace mlir_dump_test
    
    namespace {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:17:14 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc

      auto *ctx = func.getContext();
      patterns.add<ConstFakeQuantRewrite, ConstFakeQuantPerAxisRewrite>(
          ctx, &hadFailure);
      (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
      if (hadFailure) signalPassFailure();
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> createConvertSimulatedQuantPass() {
      return std::make_unique<ConvertSimulatedQuantPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

        if (failed(GetReads(func, replicate, reads)))
          return WalkResult::interrupt();
        MoveReads(replicate, reads);
        return WalkResult::advance();
      });
    
      if (result.wasInterrupted()) return signalPassFailure();
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<FuncOp>> CreateHoistBroadcastReadPass() {
      return std::make_unique<HoistBroadcastRead>();
    }
    
    }  // namespace internal
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc

      // module level.
      for (auto func : module_op.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError() << "quant-propagate-quantize-type failed.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    // Creates an instance of the TensorFlow dialect PropagateQuantizeType pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreatePropagateQuantizeTypePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/split_merged_operands.cc

        for (auto& op : bb) {
          if (failed(DuplicateValueIfNeeded(&op, &stateful_values, &builder))) {
            func.emitError() << "Failed to duplicate values for the stateful op\n";
            return signalPassFailure();
          }
        }
      }
    }
    
    }  // namespace
    
    /// Creates an instance of the TensorFlow Lite dialect SplitMergedOperands
    /// pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top