Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 230 for GetOperation (0.29 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_variables.cc

        : public impl::LegalizeVariablesPassBase<LegalizeVariablesPass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeVariablesPass)
    
      void runOnOperation() override {
        auto module = getOperation();
        // If TFLite variable legalization is not allowed, then we skip this pass.
        if (auto legalize_tfl_variables_attr =
                module->getAttr(kLegalizeTflVariables)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      mlir::tf_device::LaunchOp launch = CreateLaunchForBlock(
          builder, cluster, /*before=*/false, launch_block, host_device);
    
      auto operand_not_in_launch = [&](mlir::OpOperand& operand) {
        return !launch.getOperation()->isProperAncestor(operand.getOwner());
      };
      for (auto result : llvm::zip(launch.GetBody().getTerminator()->getOperands(),
                                   launch.getResults()))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/restore_function_name.cc

      }
    
      call_op->setAttr(TF::kStablehloEntryFunctionAttrName,
                       FlatSymbolRefAttr::get(original_function_name));
    }
    
    void RestoreFunctionNamePass::runOnOperation() {
      ModuleOp module_op = getOperation();
    
      MLIRContext* ctx = module_op.getContext();
      OpBuilder builder(ctx);
      SymbolTable symbol_table(module_op);
    
      // TODO - b/298966126: Improve this logic if needed.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc

      auto stats_op = b.create<quantfork::StatisticsOp>(
          b.getUnknownLoc(), res, layer_stats, axis_stats, axis);
      res.replaceAllUsesWith(stats_op);
      stats_op.getOperation()->replaceUsesOfWith(stats_op, res);
    }
    
    void ImportQuantStatsPass::ImportAsStatsOps(OpBuilder b, Operation *op,
                                                int index,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc

        // (x - mean) * scale / sqrt(variance + epsilon) + offset,
        // is then to compute (x * multiplier) + (offset - mean * multiplier).
    
        auto epsilon = materializeEpsilon(
            bn_op.getOperation(), bn_op.getEpsilonAttr(), fp_type,
            bn_op.getVariance(), variance_type, rewriter);
        if (!epsilon) {
          return failure();
        }
    
        // Compute multiplier = scale / sqrt(variance + epsilon)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

      explicit ConvertFuncToBfloat16Pass() = default;
    
     private:
      void runOnOperation() override;
    };
    
    void ConvertFuncToBfloat16Pass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      MLIRContext* context = func_op.getContext();
      RewritePatternSet patterns(context);
    
      BFloat16TypeConverter converter;
      patterns.add<BFloat16TypePattern, BitcastConvertOpPattern>(converter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

    // tf_device.parallel_execute
    //===----------------------------------------------------------------------===//
    
    LogicalResult ParallelExecuteOp::verify() {
      ParallelExecuteOp op = *this;
      const auto& regions = op.getOperation()->getRegions();
      if (regions.empty()) {
        return op.emitOpError() << "must have at least one region.";
      }
    
      int output_index = 0;
      for (const auto& region_and_index : llvm::enumerate(regions)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass.cc

     public:
      void runOnOperation() override;
    };
    
    void InputMetricsLoweringPass::runOnOperation() {
      bool has_dynamic_op = false;
      Operation* func_op = getOperation();
    
      func_op->walk([&](Operation* op) {
        auto abstractOp = op->getRegisteredInfo();
        if (!abstractOp) return WalkResult::advance();
    
        if (mlir::mhlo::IsDynamicPadderOp(abstractOp->getTypeID())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 08:55:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc

        auto fail = [&](Operation* op, std::string message) {
          op->emitError(message);
          signalPassFailure();
        };
    
        DenseMap<StringRef, func::FuncOp> entrypoints;
        auto module = getOperation();
        module.walk([&](func::FuncOp op) {
          auto visibility = SymbolTable::getSymbolVisibility(op);
          if (visibility != SymbolTable::Visibility::Public) return;
          entrypoints[op.getSymName()] = op;
        });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    					// Ignore context cancelled from webhook metrics
    					if !errors.Is(err.Reason, context.Canceled) {
    						admissionmetrics.Metrics.ObserveWebhookRejection(ctx, hook.Name, "admit", string(versionedAttr.Attributes.GetOperation()), admissionmetrics.WebhookRejectionCallingWebhookError, int(err.Status.ErrStatus.Code))
    					}
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top