Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 248 for getRand (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go

    func IsExemptAdmissionConfigurationResource(attr admission.Attributes) bool {
    	gvk := attr.GetKind()
    	if gvk.Group == "admissionregistration.k8s.io" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:38:55 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

      if (!(tensor_type && tensor_type.hasRank())) {
        return op->emitError()
               << "cannot convert op with unranked or non-tensor input type "
               << tensor_type << ".";
      }
    
      int rank = tensor_type.getRank();
      if (rank <= partition_dim) {
        return op->emitError() << "cannot partition " << first_operand_type
                               << " (rank = " << rank << ") along dimension "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        // Input should be rank 4.
        if (!input_ty.hasRank() || input_ty.getRank() != 4) {
          return failure();
        }
    
        // Check that out_size is rank-1, length-2. Otherwise the size is not legal.
        if (!out_size_ty.hasRank() || out_size_ty.getRank() != 1 ||
            out_size_ty.getShape()[0] != 2) {
          return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  4. plugin/pkg/admission/namespace/autoprovision/admission.go

    	// if we're here, then the API server has found a route, which means that if we have a non-empty namespace
    	// its a namespaced resource.
    	if len(a.GetNamespace()) == 0 || a.GetKind().GroupKind() == api.Kind("Namespace") {
    		return nil
    	}
    	// we need to wait for our caches to warm
    	if !p.WaitForReady() {
    		return admission.NewForbidden(a, fmt.Errorf("not yet ready to handle request"))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 08 17:30:21 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/MatchesSignatureGeneratingSignatureTreeVisitor.java

        }
    
        private static CodeBlock argClassesExpression(CallInterceptionRequest leafInCurrent) {
            return leafInCurrent.getInterceptedCallable().getParameters()
                .stream()
                .filter(it -> it.getKind().isSourceParameter())
                .map(it -> CodeBlock.of("$T.class", TypeUtils.typeName(it.getParameterType())))
                .collect(CodeBlock.joining(", ", "new Class<?>[] {", "}"));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 02 15:44:14 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/utils.td

    // Checks if the value has rank at most 'n'.
    class HasRankAtLeast<int n> : Constraint<
        CPred<"$0.getType().cast<ShapedType>().hasRank() && "
              "$0.getType().cast<ShapedType>().getRank() >= " # n>>;
    
    // Checks value is not produced by a TFL_Quant or
    // from TFL_Quant Op with same quant type.
    def NotFromQuantOpOrSameQuantType : Constraint<
      CPred<"tflite::NotFromQuantOpOrSameQuantType($0,$1)">>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h

            tf_op.emitError("The input should have known rank for per-channel op.");
            return failure();
          }
          // This is a special case that the quant_dim is the last dimensions.
          quant_dim = input_type.getRank() - 1;
        }
        // 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());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc

      // Don't prune if result is used.
      if (!result.use_empty()) return false;
    
      Block& body_block = while_op.getBody().front();
      Block& cond_block = while_op.getCond().front();
      Operation* body_yield_op = body_block.getTerminator();
    
      // The body yield operand, body block argument, condition block argument, and
      // result all correspond to each other (see definition of `WhileRegionOp`).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 16 01:49:07 UTC 2022
    - 5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go

    	return getNestedString(u.Object, "apiVersion")
    }
    
    func (u *Unstructured) SetAPIVersion(version string) {
    	u.setNestedField(version, "apiVersion")
    }
    
    func (u *Unstructured) GetKind() string {
    	return getNestedString(u.Object, "kind")
    }
    
    func (u *Unstructured) SetKind(kind string) {
    	u.setNestedField(kind, "kind")
    }
    
    func (u *Unstructured) GetNamespace() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      Type getElementType() {
        return mlir::cast<ShapedType>(value_.getType()).getElementType();
      }
    
      // For LLVM style RTTI.
      static bool classof(const AbstractTensorHandle* ptr) {
        return ptr->getKind() == kMlir;
      }
    
      // Return default (TFT_UNSET) full type information. This could be updated in
      // the future if full type information is needed.
      tensorflow::FullTypeDef FullType() const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top