Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for addgostring (0.35 sec)

  1. src/cmd/internal/goobj/objfile.go

    	b [8]byte // scratch space for writing bytes
    }
    
    func NewWriter(wr *bio.Writer) *Writer {
    	return &Writer{wr: wr, stringMap: make(map[string]uint32)}
    }
    
    func (w *Writer) AddString(s string) {
    	if _, ok := w.stringMap[s]; ok {
    		return
    	}
    	w.stringMap[s] = w.off
    	w.RawString(s)
    }
    
    func (w *Writer) stringOff(s string) uint32 {
    	off, ok := w.stringMap[s]
    	if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        ::mlir::TFL::MiniDynamicBuffer dynamic_buffer;
        auto flat = tensor.flat<::tensorflow::tstring>();
        for (int i = 0; i < flat.size(); ++i) {
          const auto& str = flat(i);
          if (!dynamic_buffer.AddString(str.c_str(), str.length()).ok()) {
            inst->emitError(
                Twine("failed to add string to dynamic buffer with error: " +
                      status.ToString()));
            return std::nullopt;
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top