Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 403 for offset_ (0.22 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/test/abiutilsaux_test.go

    }
    
    func verifyParamResultOffset(t *testing.T, f *types.Field, r abi.ABIParamAssignment, which string, idx int) int {
    	n := f.Nname.(*ir.Name)
    	if n.FrameOffset() != int64(r.Offset()) {
    		t.Errorf("%s %d: got offset %d wanted %d t=%v",
    			which, idx, r.Offset(), n.Offset_, f.Type)
    		return 1
    	}
    	return 0
    }
    
    func makeExpectedDump(e string) expectedDump {
    	return expectedDump{dump: e}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:34:00 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. src/debug/dwarf/type_test.go

    	r := d.Reader()
    	offsets := []Offset{}
    	for {
    		e, err := r.Next()
    		if err != nil {
    			t.Fatal("r.Next:", err)
    		}
    		if e == nil {
    			break
    		}
    		switch e.Tag {
    		case TagBaseType, TagTypedef, TagPointerType, TagStructType:
    			offsets = append(offsets, e.Offset)
    		}
    	}
    
    	// Parse each type with a fresh type cache.
    	for _, offset := range offsets {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modindex/index_format.txt

    		binaryOnly uint32 bool
    		cgoDirectives string offset // the #cgo directive lines in the comment on import "C"
    		goBuildConstraint  - string offset
    		len(plusBuildConstraints) - uint32
    		plusBuildConstraints - [n]uint32 (string offsets)
    		len(imports) uint32
    		for each rawImport:
    			path - string offset
    			position - file, offset, line, column - uint32
    		len(embeds) uint32
    		for each embed:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 13 00:22:50 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/log/slog/level.go

    	defer func() {
    		if err != nil {
    			err = fmt.Errorf("slog: level string %q: %w", s, err)
    		}
    	}()
    
    	name := s
    	offset := 0
    	if i := strings.IndexAny(s, "+-"); i >= 0 {
    		name = s[:i]
    		offset, err = strconv.Atoi(s[i:])
    		if err != nil {
    			return err
    		}
    	}
    	switch strings.ToUpper(name) {
    	case "DEBUG":
    		*l = LevelDebug
    	case "INFO":
    		*l = LevelInfo
    	case "WARN":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:34:43 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. src/internal/zstd/fse_test.go

    	4, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1,
    	2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 1, 1, 1, 1, 1,
    	-1, -1, -1, -1,
    }
    
    // offsetPredefinedDistribution is the predefined distribution table
    // for offsets. RFC 3.1.1.3.2.2.3.
    var offsetPredefinedDistribution = []int16{
    	1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
    	1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1,
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. src/internal/bytealg/compare_ppc64x.s

    	ADD	$-16,R9,R9
    
    	MOVD	$32,R11		// set offsets to load into vector
    	MOVD	$48,R12		// set offsets to load into vector
    
    	PCALIGN	$16
    cmp64_loop:
    	LXVD2X	(R5)(R0),V3	// load bytes of A at offset 0 into vector
    	LXVD2X	(R6)(R0),V4	// load bytes of B at offset 0 into vector
    	VCMPEQUDCC	V3,V4,V1
    	BGE	CR6,different	// jump out if its different
    
    	LXVD2X	(R5)(R10),V3	// load bytes of A at offset 16 into vector
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:33:20 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top