Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 230 for getOperation (0.28 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.cc

     public:
      LiftVariablesTestPass() { session_ = new TF::test_util::FakeSession(); }
    
      ~LiftVariablesTestPass() override { delete session_; }
    
      void runOnOperation() override {
        ModuleOp module = getOperation();
        if (failed(tf_saved_model::LiftVariables(module, session_)))
          signalPassFailure();
      }
    
     private:
      Session* session_;
    };
    
    #define GEN_PASS_DEF_LIFTVARIABLESINVALIDSESSIONTESTPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables_test_pass.cc

        return "Mark variables as initialized or not.";
      }
    
      void runOnOperation() override {
        TF::test_util::FakeSession session;
        if (failed(mlir::tf_saved_model::MarkInitializedVariablesInFunction(
                getOperation(), &session)))
          return signalPassFailure();
      }
    };
    
    // This pass is only available in the tf-opt binary for testing.
    class MarkInitializedVariablesInvalidSessionTestPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher.go

    		}
    		if evalResult.EvalResult == celtypes.False {
    			admissionmetrics.Metrics.ObserveMatchConditionEvaluationTime(ctx, time.Since(t), m.objectName, m.matcherKind, m.matcherType, string(versionedAttr.GetOperation()))
    			// If any condition false, skip calling webhook always
    			return MatchResult{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 14:46:11 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/get_arithmetic_count.cc

      void runOnOperation() override;
    };
    
    void GetArithmeticCountPass::runOnOperation() {
      auto func = getOperation();
      OpBuilder builder(func);
      func->walk([&](TflArithmeticCountOpInterface arithmetic_count_op) {
        Operation* op = arithmetic_count_op.getOperation();
        int64_t arithmetic_count = arithmetic_count_op.GetArithmeticCount(op);
        auto attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/runtime_verify.cc

      explicit RuntimeVerifyPass() {}
    
     private:
      void runOnOperation() override;
    };
    
    void RuntimeVerifyPass::runOnOperation() {
      getOperation().walk([&](TflRuntimeVerifyOpInterface op) {
        if (failed(op.VerifyTflRuntimeConstraints(
                op.getOperation(), /*emit_error_on_verify_fail=*/true)))
          signalPassFailure();
      });
    }
    }  // namespace
    
    // Verifies TFL runtime constraints.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

        auto call = llvm::cast<CallOpInterface>(pcall_op.getOperation());
        auto callee =
            llvm::cast<FuncOp>(call.resolveCallable(&symbol_table_collection));
        callee->setAttr(noinline_attr_name, builder.getBoolAttr(true));
      }
      return mlir::success();
    }
    
    void XlaClusterFormationPass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTableCollection symbol_table_collection;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/drop_while_shape_invariant.cc

      if (llvm::isa<WhileOp, WhileRegionOp>(op))
        op->removeAttr(kShapeInvariantAttr);
    }
    void DropWhileShapeInvariantPass::runOnOperation() {
      getOperation().walk([](Operation* op) { DropWhileShapeInvariantAttr(op); });
    }
    
    void DropWhileShapeInvariantInDeviceClusterPass::runOnOperation() {
      getOperation().walk([](tf_device::ClusterOp cluster) {
        cluster.walk([](Operation* op) { DropWhileShapeInvariantAttr(op); });
      });
    }
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

      int64_t total_size_transferred = 0;
      for (auto input : to_graph.getOperands()) {
        Operation* input_op = input.getDefiningOp();
        if (input_op && input_op == from_graph.getOperation()) {
          auto input_type =
              mlir::dyn_cast_or_null<RankedTensorType>(input.getType());
          if (input_type == nullptr || !input_type.hasStaticShape()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

     public:
      using OpRewritePattern<SrcOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(SrcOp srcop,
                                    PatternRewriter &rewriter) const final {
        Operation *op = srcop.getOperation();
        bool allTypesFp = true;
        bool allTypesQuantizedOrInt = true;
        for (auto operand : op->getOperands()) {
          ShapedType type = mlir::dyn_cast<ShapedType>(operand.getType());
          if (!type) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

        }
        // 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
    - 8.1K bytes
    - Viewed (0)
Back to top