Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 155 for offset_ (0.11 sec)

  1. tensorflow/compiler/mlir/lite/utils/string_utils.cc

      data_.resize(data_.size() + len);
      memcpy(data_.data() + offset_.back(), str, len);
      offset_.push_back(offset_.back() + len);
      return absl::OkStatus();
    }
    
    int MiniDynamicBuffer::WriteToBuffer(char** buffer) {
      // Allocate sufficient memory to tensor buffer.
      int32_t num_strings = offset_.size() - 1;
      // Total bytes include:
      //   * size of content (data_.size)
      //   * offset of each tensor (sizeof(int32_t) * num_strings)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/string_utils.h

      int WriteToBuffer(char** buffer);
    
     private:
      // Data buffer to store contents of strings, not including headers.
      std::vector<char> data_;
      // Offset of the starting index of each string in data buffer.
      std::vector<size_t> offset_;
      // Max length in number of characters that we permit the total
      // buffer containing the concatenation of all added strings to be.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/sizes.go

    	var offsets []int64
    	if T.NumFields() > 0 {
    		// compute offsets on demand
    		f := stdSizes.Offsetsof
    		if conf.Sizes != nil {
    			f = conf.Sizes.Offsetsof
    		}
    		offsets = f(T.fields)
    		// sanity checks
    		if len(offsets) != T.NumFields() {
    			panic("implementation of offsetsof returned the wrong number of offsets")
    		}
    	}
    	return offsets
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. src/go/types/sizes.go

    	var offsets []int64
    	if T.NumFields() > 0 {
    		// compute offsets on demand
    		f := stdSizes.Offsetsof
    		if conf.Sizes != nil {
    			f = conf.Sizes.Offsetsof
    		}
    		offsets = f(T.fields)
    		// sanity checks
    		if len(offsets) != T.NumFields() {
    			panic("implementation of offsetsof returned the wrong number of offsets")
    		}
    	}
    	return offsets
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. cmd/httprange.go

    // Case 2: bytes=1-10 (absolute start and end offsets) -> RangeSpec{false, 1, 10}
    // Case 3: bytes=10- (absolute start offset with end offset unspecified) -> RangeSpec{false, 10, -1}
    // Case 4: bytes=-30 (suffix length specification) -> RangeSpec{true, -30, -1}
    type HTTPRangeSpec struct {
    	// Does the range spec refer to a suffix of the object?
    	IsSuffixLength bool
    
    	// Start and end offset specified in range spec
    	Start, End int64
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/reflect/asm_loong64.s

    // that are known to the runtime.
    //
    // The first local is a bool called retValid with a whole pointer-word reserved
    // for it on the stack. The purpose of this word is so that the runtime knows
    // whether the stack-allocated return space contains valid values for stack
    // scanning.
    //
    // The second local is an abi.RegArgs value whose offset is also known to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. clause/limit_test.go

    			"SELECT * FROM `users` LIMIT ?",
    			[]interface{}{limit10},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Limit{Limit: &limit10, Offset: 20}, clause.Limit{Offset: 30}, clause.Limit{Limit: &limitNeg10}},
    			"SELECT * FROM `users` OFFSET ?",
    			[]interface{}{30},
    		},
    		{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/mergelocals_test.go

    	// on and then pick up on the frame offsets of specific
    	// variables.
    	//
    	// Stack slot merging is a greedy algorithm, and there can
    	// be many possible ways to overlap a given set of candidate
    	// variables, all of them legal. Rather than locking down
    	// a specific set of overlappings or frame offsets, this
    	// tests just verifies that there is a decent-sized clump of 4+ vars that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. src/unique/clone.go

    	atyp := typ.ArrayType()
    	etyp := atyp.Elem
    	offset := baseOffset
    	for range atyp.Len {
    		switch etyp.Kind() {
    		case abi.String:
    			seq.stringOffsets = append(seq.stringOffsets, offset)
    		case abi.Struct:
    			buildStructCloneSeq(etyp, seq, offset)
    		case abi.Array:
    			buildArrayCloneSeq(etyp, seq, offset)
    		}
    		offset += etyp.Size()
    		align := uintptr(etyp.FieldAlign())
    		offset = (offset + align - 1) &^ (align - 1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:21 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

        this.elementSet = elementSet;
        this.cumulativeCounts = cumulativeCounts;
        this.offset = offset;
        this.length = length;
      }
    
      private int getCount(int index) {
        return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]);
      }
    
      @Override
      Entry<E> getEntry(int index) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top