Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 122 for attr_ (0.07 sec)

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

        auto operand_size_attr = builder.getDenseI32ArrayAttr(operand_sizes);
        NamedAttrList attrs(send_op->getAttrs());
        attrs.set(send_op.getOperandSegmentSizeAttr(), operand_size_attr);
    
        AddOperandAndRewriteAs<XlaSendTPUEmbeddingGradientsOp>(send_op, dedup_op,
                                                               attrs, &builder);
      }
      return success();
    }
    
    void RewriteTPUEmbeddingOps::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. pkg/kube/krt/filter.go

    }
    
    func (f *filter) String() string {
    	attrs := []string{}
    	if !f.keys.IsNil() {
    		attrs = append(attrs, "keys="+f.keys.String())
    	}
    	if f.selectsNonEmpty != nil {
    		attrs = append(attrs, fmt.Sprintf("selectsNonEmpty=%v", f.selectsNonEmpty))
    	}
    	if f.selects != nil {
    		attrs = append(attrs, fmt.Sprintf("selects=%v", f.selects))
    	}
    	if f.labels != nil {
    		attrs = append(attrs, fmt.Sprintf("labels=%v", f.labels))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/attribute_utils.cc

    namespace TFL {
    
    FloatAttr ExtractSingleElementAsFloat(ElementsAttr attr) {
      if (attr.getShapedType().getNumElements() != 1 ||
          !mlir::isa<FloatType>(attr.getShapedType().getElementType())) {
        return {};
      }
      return attr.getSplatValue<FloatAttr>();
    }
    
    FloatAttr GetSingleElementAsFloatOrSelf(Attribute attr) {
      if (auto m = mlir::dyn_cast_or_null<ElementsAttr>(attr)) {
        return ExtractSingleElementAsFloat(m);
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/ops/xla_ops.cc

    REGISTER_OP("XlaLaunch")
        .Input("constants: Tconstants")
        .Attr("Tconstants: list(type) >= 0")
        .Input("args: Targs")
        .Attr("Targs: list(type) >= 0")
        .Input("resources: Nresources * resource")
        .Attr("Nresources: int >= 0")
        .Output("results: Tresults")
        .Attr("Tresults: list(type) >= 0")
        .Attr("function: func")
        // XLA random-number generation ops are stateful.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 09:08:06 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go

    	matches, matchObjErr := a.objectMatcher.MatchObjectSelector(h, attr)
    	if !matches && matchObjErr == nil {
    		return nil, nil
    	}
    
    	var invocation *WebhookInvocation
    	for _, r := range h.GetRules() {
    		m := rules.Matcher{Rule: r, Attr: attr}
    		if m.Matches() {
    			invocation = &WebhookInvocation{
    				Webhook:     h,
    				Resource:    attr.GetResource(),
    				Subresource: attr.GetSubresource(),
    				Kind:        attr.GetKind(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching.go

    	matchKind := attr.GetKind()
    	matchResource := attr.GetResource()
    
    	for _, namedRule := range namedRules {
    		rule := v1.RuleWithOperations(namedRule.RuleWithOperations)
    		ruleMatcher := rules.Matcher{
    			Rule: rule,
    			Attr: attr,
    		}
    		if !ruleMatcher.Matches() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/DirectorySnapshotterStatistics.java

                collector.recordVisitDirectory();
                return doPreVisitDirectory(dir, attrs);
            }
    
            protected abstract FileVisitResult doPreVisitDirectory(Path dir, BasicFileAttributes attrs);
    
            @Override
            public final FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
                collector.recordVisitFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. fastapi/utils.py

            new_field.key_field = create_cloned_field(  # type: ignore[attr-defined]
                field.key_field,  # type: ignore[attr-defined]
                cloned_types=cloned_types,
            )
        new_field.validators = field.validators  # type: ignore[attr-defined]
        new_field.pre_validators = field.pre_validators  # type: ignore[attr-defined]
        new_field.post_validators = field.post_validators  # type: ignore[attr-defined]
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/end2end/unroll_batch_matmul_disabled.pbtxt

      input: "Placeholder_1"
      attr {
        key: "T"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "adj_x"
        value {
          b: false
        }
      }
      attr {
        key: "adj_y"
        value {
          b: false
        }
      }
    }
    versions {
      producer: 175
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.cc

        return false;
      }
    
      return DenseI64AttrToI32Vector(attr, out_vec);
    }
    
    std::optional<bool> GetBoolFromCompositeAttr(
        const DictionaryAttr& composite_attrs, llvm::StringRef attr_name) {
      auto attr = composite_attrs.get(attr_name);
      if (!attr) return std::nullopt;
      if (auto bool_attr = mlir::dyn_cast_or_null<BoolAttr>(attr)) {
        return bool_attr.getValue();
      }
      return std::nullopt;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 18:33:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top