Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for set_bits (2.91 sec)

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

        // Construct a new array of input shapes excluding the input shapes of the
        // erased arguments.
        SmallVector<Attribute> updated_input_shapes_attr;
        for (const unsigned i : args_to_erase_bit_vector.flip().set_bits()) {
          updated_input_shapes_attr.emplace_back(input_shapes_attr[i]);
        }
    
        // Replaces the attribute with the updated "#tf_type.shape" array.
        // Builder builder(func_op.getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. src/math/big/bits_test.go

    			min = b
    		}
    	}
    
    	// create bit pattern
    	x := NewInt(0)
    	for _, b := range bits {
    		badj := b - min
    		// propagate carry if necessary
    		for x.Bit(badj) != 0 {
    			x.SetBit(x, badj, 0)
    			badj++
    		}
    		x.SetBit(x, badj, 1)
    	}
    
    	// create corresponding float
    	z := new(Float).SetInt(x) // normalized
    	if e := int64(z.exp) + int64(min); MinExp <= e && e <= MaxExp {
    		z.exp = int32(e)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      const int32_t num_in_original = operandSegmentSizes[0];
      int32_t num_in_tensors = num_in_original;
      int32_t num_captured_tensors = operandSegmentSizes[1];
    
      for (const unsigned operand_index : erase_indices.set_bits()) {
        operand_index < num_in_original ? num_in_tensors-- : num_captured_tensors--;
      }
    
      getOperation()->eraseOperands(erase_indices);
      getOperation()->setAttr(
          operand_segment_size_attr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  4. src/math/big/int_test.go

    	}
    }
    
    func BenchmarkBitset(b *testing.B) {
    	z := new(Int)
    	z.SetBit(z, 512, 1)
    	b.ResetTimer()
    	for i := b.N - 1; i >= 0; i-- {
    		z.SetBit(z, i&512, 1)
    	}
    }
    
    func BenchmarkBitsetNeg(b *testing.B) {
    	z := NewInt(-1)
    	z.SetBit(z, 512, 0)
    	b.ResetTimer()
    	for i := b.N - 1; i >= 0; i-- {
    		z.SetBit(z, i&512, 0)
    	}
    }
    
    func BenchmarkBitsetOrig(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/CharMatcher.java

        }
    
        @GwtIncompatible // used only from other GwtIncompatible code
        @Override
        void setBits(BitSet table) {
          BitSet tmp1 = new BitSet();
          first.setBits(tmp1);
          BitSet tmp2 = new BitSet();
          second.setBits(tmp2);
          tmp1.and(tmp2);
          table.or(tmp1);
        }
    
        @Override
        public String toString() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.7K bytes
    - Viewed (0)
  6. src/crypto/internal/boring/bbig/big.go

    }
    
    func Dec(b boring.BigInt) *big.Int {
    	if b == nil {
    		return nil
    	}
    	if len(b) == 0 {
    		return new(big.Int)
    	}
    	x := unsafe.Slice((*big.Word)(&b[0]), len(b))
    	return new(big.Int).SetBits(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:28 UTC 2022
    - 603 bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/CharMatcher.java

        }
    
        @GwtIncompatible // used only from other GwtIncompatible code
        @Override
        void setBits(BitSet table) {
          BitSet tmp1 = new BitSet();
          first.setBits(tmp1);
          BitSet tmp2 = new BitSet();
          second.setBits(tmp2);
          tmp1.and(tmp2);
          table.or(tmp1);
        }
    
        @Override
        public String toString() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  8. src/math/big/int.go

    		return t.bit(uint(i)) ^ 1
    	}
    
    	return x.abs.bit(uint(i))
    }
    
    // SetBit sets z to x, with x's i'th bit set to b (0 or 1).
    // That is, if b is 1 SetBit sets z = x | (1 << i);
    // if b is 0 SetBit sets z = x &^ (1 << i). If b is not 0 or 1,
    // SetBit will panic.
    func (z *Int) SetBit(x *Int, i int, b uint) *Int {
    	if i < 0 {
    		panic("negative bit index")
    	}
    	if x.neg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/topologymanager/numa_info.go

    	// This should never happen, but just in case make sure we do not divide by zero.
    	if bm.Count() == 0 {
    		return 0
    	}
    
    	var count float64 = 0
    	var sum float64 = 0
    	for _, node1 := range bm.GetBits() {
    		for _, node2 := range bm.GetBits() {
    			sum += float64(d[node1][node2])
    			count++
    		}
    	}
    
    	return sum / 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)
  10. src/cmd/compile/internal/ssa/sparsemap.go

    		s.dense[i].val = v
    		return
    	}
    	s.dense = append(s.dense, sparseEntry{k, v})
    	s.sparse[k] = int32(len(s.dense)) - 1
    }
    
    // setBit sets the v'th bit of k's value, where 0 <= v < 32
    func (s *sparseMap) setBit(k ID, v uint) {
    	if v >= 32 {
    		panic("bit index too large.")
    	}
    	i := s.sparse[k]
    	if i < int32(len(s.dense)) && s.dense[i].key == k {
    		s.dense[i].val |= 1 << v
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:06 UTC 2022
    - 1.9K bytes
    - Viewed (0)
Back to top