Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 93 for attr_ (0.04 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/plugin.go

    			},
    		),
    	}
    }
    
    // Validate makes an admission decision based on the request attributes.
    func (a *Plugin) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) error {
    	return a.Plugin.Dispatch(ctx, attr, o)
    }
    
    func (a *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate) {
    	a.Plugin.SetEnabled(featureGates.Enabled(features.ValidatingAdmissionPolicy))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/syscall/exec_linux.go

    	// Make sure that nextfd is beyond any currently open files so
    	// that we can't run the risk of overwriting any of them.
    	fd := make([]int, len(attr.Files))
    	nextfd = len(attr.Files)
    	for i, ufd := range attr.Files {
    		if nextfd < int(ufd) {
    			nextfd = int(ufd)
    		}
    		fd[i] = int(ufd)
    	}
    	nextfd++
    
    	// Allocate another pipe for parent to child communication for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      // Return operand as a constant attribute.
      auto operand_as_constant_fn = [&](Value operand) {
        ValuePort vp(operand);
        Attribute attr = ComputeOutputComponent(vp);
        if (!attr && matchPattern(operand, m_Constant(&attr)))
          RecordValue(vp, attr);
        return attr;
      };
    
      // Return op result as a shape.
      auto op_result_as_shape_fn = [&](InferenceContext& context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.h

    // this composite (here, padding is done directly by the tfl.average_pool_2d as
    // opposed to being extracted into a separate tfl.pad).
    StringAttr GetAvgPoolOpPadAttr(Builder& builder, mhlo::CompositeOp op);
    
    // Get dense attr for a matrix that corrects the over counting of divisors when
    // casting an average pool with ceil mode on in terms of average pool with it
    // off.
    DenseFPElementsAttr GetCorrectionMatrix(Builder& builder, mhlo::CompositeOp op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_tpu_device.cc

      const DeviceAttributes attrs = Device::BuildDeviceAttributes(
          absl::StrCat(name_prefix, "/device:", DEVICE_TPU_SYSTEM, ":", 0),
          DeviceType(DEVICE_TPU_SYSTEM), Bytes(memory_limit), DeviceLocality(),
          absl::StrCat("device: ", DEVICE_TPU_SYSTEM, " device"));
      devices->push_back(std::make_unique<VirtualDevice>(options.env, attrs));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_device.cc

      return xla::ClientLibrary::GetOrCreateLocalClient(options);
    }
    
    Allocator* XlaDevice::GetAllocator(AllocatorAttributes attr) {
      mutex_lock lock(mu_);
      return GetAllocatorLocked(attr);
    }
    
    Allocator* XlaDevice::GetAllocatorLocked(AllocatorAttributes attr) {
      if (attr.on_host()) {
        return cpu_allocator();
      }
    
      if (xla_allocator_ == nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        Type shape_dtype = getElementTypeOrSelf(op.getElementShape().getType());
        Value num_elements = operands[1];
        IntegerAttr attr;
        if (matchPattern(num_elements, m_Constant(&attr))) {
          return CreateI32SplatConst(op.getLoc(), rewriter, {1}, attr.getInt());
        }
        if (auto const_op = num_elements.getDefiningOp<TF::ConstOp>()) {
          return CreateI32SplatConst(op->getLoc(), rewriter, {1},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  8. src/crypto/x509/x509.go

    	for _, rawAttr := range rawAttributes {
    		var attr pkcs10Attribute
    		if rest, err := asn1.Unmarshal(rawAttr.FullBytes, &attr); err != nil || len(rest) != 0 || len(attr.Values) == 0 {
    			// Ignore attributes that don't parse.
    			continue
    		}
    
    		if !attr.Id.Equal(oidExtensionRequest) {
    			continue
    		}
    
    		var extensions []pkix.Extension
    		if _, err := asn1.Unmarshal(attr.Values[0].FullBytes, &extensions); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow_to_stablehlo/README.md

      'main' entry-point, separating tensors with ':', dimension with ',', and
      using '?' for unknown sizes. For example, `input-arg-shapes=1,2::1,?`
      expresses argument shapes `[1,2]`, `[]` and `[1,?]`.
    * `--e`: Elide large elements attrs while dumping the output StableHLO.
    * `--output_filename`: Path to the output file where the textual StableHLO MLIR
      module will be written (default: stdout).
    
    
    ### Examples
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. cmd/acl-handlers.go

    // policy XML, these variables shouldn't be used elsewhere
    // they are only defined to be used in this file alone.
    type grantee struct {
    	XMLNS       string `xml:"xmlns:xsi,attr"`
    	XMLXSI      string `xml:"xsi:type,attr"`
    	Type        string `xml:"Type"`
    	ID          string `xml:"ID,omitempty"`
    	DisplayName string `xml:"DisplayName,omitempty"`
    	URI         string `xml:"URI,omitempty"`
    }
    
    type grant struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top