- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for bitMask (0.31 sec)
-
pkg/kubelet/cm/topologymanager/bitmask/bitmask.go
IsNarrowerThan(mask BitMask) bool IsLessThan(mask BitMask) bool IsGreaterThan(mask BitMask) bool String() string Count() int GetBits() []int } type bitMask uint64 // NewEmptyBitMask creates a new, empty BitMask func NewEmptyBitMask() BitMask { s := bitMask(0) return &s } // NewBitMask creates a new BitMask func NewBitMask(bits ...int) (BitMask, error) { s := bitMask(0) err := (&s).Add(bits...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:09 UTC 2022 - 5.1K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/numa_info.go
NUMADistances: distances, } return numaInfo, nil } func (n *NUMAInfo) Narrowest(m1 bitmask.BitMask, m2 bitmask.BitMask) bitmask.BitMask { if m1.IsNarrowerThan(m2) { return m1 } return m2 } func (n *NUMAInfo) Closest(m1 bitmask.BitMask, m2 bitmask.BitMask) bitmask.BitMask { // If the length of both bitmasks aren't the same, choose the one that is narrowest. if m1.Count() != m2.Count() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 16:52:14 UTC 2022 - 2.7K bytes - Viewed (0) -
src/sync/atomic/type.go
// And atomically performs a bitwise AND operation on x using the bitmask // provided as mask and returns the old value. func (x *Int32) And(mask int32) (old int32) { return AndInt32(&x.v, mask) } // Or atomically performs a bitwise OR operation on x using the bitmask // provided as mask and returns the old value. func (x *Int32) Or(mask int32) (old int32) { return OrInt32(&x.v, mask) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 8.5K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/topology_manager.go
GetAffinity(podUID string, containerName string) TopologyHint GetPolicy() Policy } // TopologyHint is a struct containing the NUMANodeAffinity for a Container type TopologyHint struct { NUMANodeAffinity bitmask.BitMask // Preferred is set to true when the NUMANodeAffinity encodes a preferred // allocation for the Container. It is set to false otherwise. Preferred bool } // IsEqual checks if TopologyHint are equal
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 15 12:43:16 UTC 2023 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/common/constants.go
import ( "github.com/google/cel-go/common/types/traits" ) // RootTypeReferenceName is the root reference that all type names should start with. const RootTypeReferenceName = "Object" // ObjectTraits is the bitmask that represents traits that an object should have.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 00:01:35 UTC 2024 - 897 bytes - Viewed (0) -
src/net/netip/uint128.go
// // When the methods below mention a bit number, bit 0 is the most // significant bit (in hi) and bit 127 is the lowest (lo&1). type uint128 struct { hi uint64 lo uint64 } // mask6 returns a uint128 bitmask with the topmost n bits of a // 128-bit number. func mask6(n int) uint128 { return uint128{^(^uint64(0) >> n), ^uint64(0) << (128 - n)} } // isZero reports whether u == 0. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 07 21:28:44 UTC 2022 - 2.2K bytes - Viewed (1) -
tensorflow/c/kernels/ops/bitcast.cc
TF_RegisterOpDefinition(op_builder, status); CHECK_EQ(TF_GetCode(status), TF_OK) << "Bitcast op registration failed: " << TF_Message(status); TF_DeleteStatus(status); } TF_ATTRIBUTE_UNUSED static bool IsBitcastOpRegistered = []() { if ((&TF_NewStatus != nullptr) && SHOULD_REGISTER_OP("Bitcast")) { RegisterBitcastOp(); } return true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 07:51:50 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/convert_func_to_bfloat16.mlir
func.func @bitcast_convert_i32_f32(%arg0: tensor<1x256128xi32>) -> tensor<1x256128xf32> { // CHECK: %[[BITCAST:.*]] = stablehlo.bitcast_convert %arg0 : (tensor<1x256128xi32>) -> tensor<1x256128xf32> // CHECK: %[[CONVERT:.*]] = stablehlo.convert %[[BITCAST]] : (tensor<1x256128xf32>) -> tensor<1x256128xbf16> // CHECK: return %[[CONVERT]] : tensor<1x256128xbf16>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 08 22:40:14 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/c/kernels/BUILD
"//tensorflow/c:tf_tensor", "//tensorflow/core:framework", "//tensorflow/core:lib", "//tensorflow/core:protos_all_cc", ], ) tf_gen_op_libs( op_lib_names = ["bitcast"], deps = [ "//tensorflow/c:ops", "//tensorflow/c:tf_datatype", "//tensorflow/c:tf_status", "//tensorflow/c:tf_tensor", "//tensorflow/core:lib", ], )
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 27 18:00:18 UTC 2024 - 4.8K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy_single_numa_node.go
func (p *singleNumaNodePolicy) Name() string { return PolicySingleNumaNode } func (p *singleNumaNodePolicy) canAdmitPodResult(hint *TopologyHint) bool { return hint.Preferred } // Return hints that have valid bitmasks with exactly one bit set. func filterSingleNumaHints(allResourcesHints [][]TopologyHint) [][]TopologyHint { var filteredResourcesHints [][]TopologyHint for _, oneResourceHints := range allResourcesHints {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 16:52:08 UTC 2022 - 2.5K bytes - Viewed (0)