Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 123 for getOperation (0.18 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

                                 Operation* new_yield_op) {
      Block* block = new_yield_op->getBlock();
    
      auto move_inner_ops = [block, new_yield_op](IslandOp island) {
        auto& island_body = island.GetBody().getOperations();
        block->getOperations().splice(new_yield_op->getIterator(), island_body,
                                      island_body.begin(),
                                      std::prev(island_body.end()));
      };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc

      using OpRewritePattern::OpRewritePattern;
    
      LogicalResult matchAndRewrite(TF::AddNOp op,
                                    PatternRewriter& rewriter) const override {
        if (!HasVariantInputOrOutput(op.getOperation())) {
          return failure();
        }
        auto converted = rewriter.create<TFL::CustomOp>(
            op->getLoc(), op->getResultTypes(), op->getOperands(), "VariantAddN",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

        StrAttr:$device
      );
    
      let results = (outs
        Variadic<AnyType>:$results
      );
    
      let regions = (region SizedRegion<1>:$body);
    
      let extraClassDeclaration = [{
        Block &GetBody() { return getOperation()->getRegion(0).front(); }
        bool WrapsSingleOp();
      }];
    
      let builders = [
        OpBuilder<(ins "StringAttr":$device, "TypeRange":$result_types),
        [{
          $_state.addAttribute("device", device);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

              "target device.");
        }
    
        SmallVector<Location, 3> locations{contraction.getLoc(), bias_add.getLoc()};
        SmallVector<Attribute, 2> fused_ops{StringAttr::get(
            context, bias_add.getOperation()->getName().stripDialect())};
    
        // BiasAdd may or may not feed into an activation function.
        auto activation = GetActivation(bias_add);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

    }
    
    }  // namespace
    
    struct LegalizeStablehloToVhloPass
        : public impl::LegalizeStablehloToVhloPassBase<
              LegalizeStablehloToVhloPass> {
      void runOnOperation() override {
        ModuleOp module = getOperation();
        std::string target_version = tflite_supported_stablehlo_version;
        VhloToStablehloTypeConverter to_builtin_converter;
    
        // StableHLO --> VHLO (allow funcs)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

    void TPURewritePass::runOnOperation() {
      TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(getOperation(), &devices)))
        return signalPassFailure();
    
      // Collect compilation results.
      llvm::DenseMap<Attribute, SmallVector<TF::TPUCompilationResultOp, 1>>
          compilation_results;
      auto result_init = getOperation().walk([&](TF::TPUCompilationResultOp op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

          OpBuilder::InsertionGuard guard(rewriter);
          rewriter.setInsertionPointAfter(op->getParentOfType<func::FuncOp>());
          cloned_func = llvm::dyn_cast_or_null<func::FuncOp>(
              rewriter.clone(*func.getOperation()));
          manager.insert(cloned_func);
          rewriter.setInsertionPointToStart(&cloned_func.getBody().front());
          auto result_type =
              RankedTensorType::get({3}, rewriter.getType<TF::StringType>());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top