Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for byte_offset (0.08 sec)

  1. tensorflow/c/eager/dlpack.cc

      }
      int num_dims = dl_tensor->ndim;
      const int64_t* dims = dl_tensor->shape;
      void* data = dl_tensor->data;
    
      if (dl_tensor->byte_offset != 0) {
        status->status = tensorflow::errors::InvalidArgument(
            "Unsupported byte_offset (", dl_tensor->byte_offset,
            ") from DLPack, must be zero");
        return nullptr;
      }
    
      size_t total_bytes = dl_tensor->dtype.bits / 8;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    		}
    
    		// Round off up to talign, assumed to be a power of 2.
    		origOff := off
    		off = (off + talign - 1) &^ (talign - 1)
    
    		if f.ByteOffset > off {
    			fld, sizes = c.pad(fld, sizes, f.ByteOffset-origOff)
    			off = f.ByteOffset
    		}
    		if f.ByteOffset < off {
    			// Drop a packed field that we can't represent.
    			continue
    		}
    
    		n := len(fld)
    		fld = fld[0 : n+1]
    		if name == "" {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top