Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 248 for getUses (0.2 sec)

  1. pkg/registry/rbac/role/policybased/storage_test.go

    	authzCalled := 0
    	fakeStorage := &fakeStorage{}
    	fakeAuthorizer := authorizer.AuthorizerFunc(func(ctx context.Context, attr authorizer.Attributes) (authorizer.Decision, string, error) {
    		authzCalled++
    		if attr.GetUser().GetName() == "steve" {
    			return authorizer.DecisionAllow, "", nil
    		}
    		return authorizer.DecisionNoOpinion, "", nil
    	})
    	fakeRuleResolver, _ := validation.NewTestRuleResolver(
    		nil,
    		nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 09 13:47:19 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go

    		return policyDefault
    	}
    
    	return *policyRule.OmitManagedFields
    }
    
    // Check whether the rule matches the request attrs.
    func ruleMatches(r *audit.PolicyRule, attrs authorizer.Attributes) bool {
    	user := attrs.GetUser()
    	if len(r.Users) > 0 {
    		if user == nil || !hasString(r.Users, user.GetName()) {
    			return false
    		}
    	}
    	if len(r.UserGroups) > 0 {
    		if user == nil {
    			return false
    		}
    		matched := false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      if (auto block_arg = mlir::dyn_cast<mlir::BlockArgument>(arg)) {
        if (!Conv2DInputShapeCanTransform(arg)) return std::nullopt;
        unsigned num_users =
            std::distance(block_arg.getUsers().begin(), block_arg.getUsers().end());
        BlockArgumentInfo block_arg_info = {block_arg.getArgNumber(), num_users};
        return block_arg_info;
      }
      return std::nullopt;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                // check file size
                responseData.setContentLength(file.getSize());
                checkMaxContentLength(responseData);
    
                if (file.getUser() != null) {
                    responseData.addMetaData(FTP_FILE_USER, file.getUser());
                }
                if (file.getGroup() != null) {
                    responseData.addMetaData(FTP_FILE_GROUP, file.getGroup());
                }
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

                                    PatternRewriter &rewriter) const override {
        // Only rewrite if the Broadcast has only one consumer.
        if (!op.getOutput().hasOneUse()) return failure();
    
        Operation *user = *op.getOutput().getUsers().begin();
    
        auto reshape_op = llvm::dyn_cast_or_null<ReshapeOp>(user);
        if (!reshape_op) return failure();
    
        auto reshape_type =
            mlir::cast<ShapedType>(reshape_op.getOutput().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)
  6. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

    bool CanMove(Operation* op) {
      auto launch_op = llvm::dyn_cast<tf_device::LaunchOp>(op->getParentOp());
      if (!launch_op) return false;
      for (Value result : op->getResults()) {
        for (Operation* user : result.getUsers()) {
          if (user != launch_op.GetBody().getTerminator()) return false;
        }
      }
      return true;
    }
    
    // Get the new launch op results. This is the results if the copy op is removed
    // from the old launch op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      for (Operation& head_outside_compiled_op : *launch_block) {
        for (Value result : head_outside_compiled_op.getResults()) {
          bool has_external_uses = false;
          for (Operation* user : result.getUsers()) {
            if (OpInBlock(user, launch_block)) continue;
            has_external_uses = true;
            break;
          }
          if (has_external_uses) {
            launch_results.push_back(result);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

      LogicalResult matchAndRewrite(quantfork::DequantizeCastOp op,
                                    PatternRewriter& rewriter) const override {
        SmallVector<Operation*, 4> quantizing_ops;
        auto users = op.getResult().getUsers();
        quantizing_ops.append(users.begin(), users.end());
    
        bool changed = false;
        // Rewrite the floating-point ops to the quantized version, by fusing
        // preceding dequantize ops and succeding quantize ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    	unstructuredList
    	escapedKeyProps []string
    
    	sync.Once // for for lazy load of setOfList since it is only needed if Equals is called
    	set       map[interface{}]struct{}
    }
    
    func (t *unstructuredSetList) getSet() map[interface{}]struct{} {
    	// sets are only allowed to contain scalar elements, which are comparable in go, and can safely be used as
    	// golang map keys
    	t.Do(func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/log/bsentity/BsSearchLog.java

            return convertEmptyToNull(searchWord);
        }
    
        public void setSearchWord(String value) {
            registerModifiedProperty("searchWord");
            this.searchWord = value;
        }
    
        public String getUser() {
            checkSpecifiedProperty("user");
            return convertEmptyToNull(user);
        }
    
        public void setUser(String value) {
            registerModifiedProperty("user");
            this.user = value;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top