Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for takeError (0.08 sec)

  1. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

      CHECK(status.ok()) << "Failed to setup request context: " << status.message();
    
      auto req_ctx = std::move(builder).build();
      if (auto err = req_ctx.takeError())
        LOG(FATAL) << "Failed to build a request context";
    
      exec_ctx_ = std::make_unique<tfrt::ExecutionContext>(std::move(*req_ctx));
    }
    
    void RuntimeFallbackExecutor::Prepare(llvm::StringRef mlir_input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/internal/zstd/bits.go

    }
    
    // backup steps back to the last byte we used.
    func (br *bitReader) backup() {
    	for br.cnt >= 8 {
    		br.off--
    		br.cnt -= 8
    	}
    }
    
    // makeError returns an error at the current offset wrapping a string.
    func (br *bitReader) makeError(msg string) error {
    	return br.r.makeError(int(br.off), msg)
    }
    
    // reverseBitReader reads a bit stream in reverse.
    type reverseBitReader struct {
    	r     *Reader // for error reporting
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. src/internal/zstd/huff.go

    		if w > 12 {
    			return 0, 0, r.makeError(off, "Huffman weight overflow")
    		}
    		weightMark[w]++
    		if w > 0 {
    			weightMask += 1 << (w - 1)
    		}
    	}
    	if weightMask == 0 {
    		return 0, 0, r.makeError(off, "bad Huffman weights")
    	}
    
    	tableBits = 32 - bits.LeadingZeros32(weightMask)
    	if tableBits > maxHuffmanBits {
    		return 0, 0, r.makeError(off, "bad Huffman weights")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/internal/zstd/literals.go

    	// The maximum size of one decompressed block is 128K,
    	// so we can't have more literals than that.
    	if regeneratedSize > 128<<10 {
    		return 0, nil, r.makeError(off, "literal size too large")
    	}
    
    	if raw {
    		// RFC 3.1.1.3.1.2.
    		if off+regeneratedSize > len(data) {
    			return 0, nil, r.makeError(off, "raw literal size too large")
    		}
    		outbuf = append(outbuf, data[off:off+regeneratedSize]...)
    		off += regeneratedSize
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 14:30:10 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top