Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 369 for GetOperation (0.17 sec)

  1. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h

        }
        // Use the min/max from the operands and the num_bits and narrow_range
        // attribute to create the quantization parameter for the new quantize op.
        rewriter.setInsertionPointAfter(tf_op.getOperation());
        IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits());
        BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange());
        Type res_type = tf_op.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.cc

    #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.inc"
    
    void OptimizeIntGraph::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      populateWithGenerated(patterns);
      auto func = getOperation();
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateOptimizeIntGraphPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 24 02:26:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass.cc

     public:
      void runOnOperation() override;
    };
    
    void InferenceMetricsPass::runOnOperation() {
      bool has_tpu_partitioned_call = false;
      ModuleOp module = getOperation();
    
      for (auto func_op : module.getOps<func::FuncOp>()) {
        func_op->walk(
            [&](TF::TPUPartitionedCallOp op) { has_tpu_partitioned_call = true; });
    
        if (has_tpu_partitioned_call) break;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 05 21:24:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go

    						// Ignore context cancelled from webhook metrics
    						if !errors.Is(err.Reason, context.Canceled) {
    							admissionmetrics.Metrics.ObserveWebhookRejection(ctx, hook.Name, "validating", string(versionedAttr.Attributes.GetOperation()), admissionmetrics.WebhookRejectionCallingWebhookError, int(err.Status.ErrStatus.Code))
    						}
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 20:24:12 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

            new_ewise_op->getLoc(), op->getResult(0).getType(),
            new_ewise_op->getResults()[0], perm);
        rewriter.replaceOp(op, out_tpose_op.getOperation());
        return success();
      }
    };
    
    void PushTransposeThroughEwisePass::runOnOperation() {
      auto module = getOperation();
      RewritePatternSet patterns(&getContext());
    
      patterns.add<CommuteTransposeWithEwiseOps>(&getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

      // to yield.
      ReplaceRegionWithCall(GetName(while_op.getOperation(), "_cond"),
                            while_op.getCond(), false, num_loop_carried,
                            extern_values, types, while_op.getLoc());
      ReplaceRegionWithCall(GetName(while_op.getOperation(), "_body"),
                            while_op.getBody(), true, num_loop_carried,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

      if (auto block_arg = mlir::dyn_cast<BlockArgument>(value))
        return block_arg.getOwner()->getParentOp();
    
      return value.getDefiningOp();
    }
    
    void TPUAnnotateDynamicShapeInputsPass::runOnOperation() {
      getOperation().walk([&](tf_device::ClusterFuncOp cluster_func_op) {
        Builder builder(cluster_func_op->getContext());
        // Skip non-tpu device cluster_func.
        auto cluster_id =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

      // TODO: b/304003568 - Add TF_TransposeOp folding logic to tflite.
      target.addIllegalOp<mhlo::DotGeneralOp, mhlo::DotOp, mhlo::TransposeOp>();
      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("mhlo to TFLite legalization failed.");
        signalPassFailure();
      }
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/strip_noinline_attribute.cc

     public:
      // void runOnOperation() override;
      void runOnOperation() override {
        // Strip the "tf._noinline" attribute from top-level functions.
        for (auto func_op : getOperation().getOps<func::FuncOp>())
          func_op->removeAttr("tf._noinline");
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateStripNoinlineAttributePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables_test_pass.cc

    struct FreezeVariableTestPass
        : public impl::FreezeVariablesTestPassBase<FreezeVariableTestPass> {
      void runOnOperation() override {
        TF::test_util::FakeSession session;
        if (tf_saved_model::FreezeVariables(getOperation(), &session).failed())
          signalPassFailure();
      }
    };
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeVariableTestPass() {
      return std::make_unique<FreezeVariableTestPass>();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top