Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 403 for Tperm (0.06 sec)

  1. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

        auto output_type = mlir::cast<ShapedType>(op.getOutput().getType());
    
        SmallVector<int32_t, 4> perm;
        SmallVector<int64_t, 4> output_shape;
        for (int i = 0; i < num_dimensions; ++i) {
          perm.push_back(perm_tensor.getValues<IntegerAttr>()[i].getInt());
          output_shape.push_back(input_shape[perm[i]]);
    
          // Check that the derived output shape matches the static shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. pkg/volume/util/subpath/subpath_linux.go

    		// Everything was created. mkdirat(..., perm) above was affected by current
    		// umask and we must apply the right permissions to the all created directory.
    		// (that's the one that will be available to the container as subpath)
    		// so user can read/write it.
    		// parentFD is the last created directory.
    
    		// Translate perm (os.FileMode) to uint32 that fchmod() expects
    		kernelPerm := uint32(perm & os.ModePerm)
    		if perm&os.ModeSetgid > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/shell.go

    			return sh.CopyFile(dst, src, perm, force)
    		}
    	}
    
    	// The perm argument is meant to be adjusted according to umask,
    	// but we don't know what the umask is.
    	// Create a dummy file to find out.
    	// This avoids build tags and works even on systems like Plan 9
    	// where the file mask computation incorporates other information.
    	mode := perm
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. internal/disk/directio_unix.go

    // ODirectPlatform indicates if the platform supports O_DIRECT
    const ODirectPlatform = true
    
    // OpenFileDirectIO - bypass kernel cache.
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return directio.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO - disables directio mode.
    func DisableDirectIO(f *os.File) error {
    	fd := f.Fd()
    	flag, err := unix.FcntlInt(fd, unix.F_GETFL, 0)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. src/io/ioutil/ioutil.go

    // If the file does not exist, WriteFile creates it with permissions perm
    // (before umask); otherwise WriteFile truncates it before writing, without changing permissions.
    //
    // Deprecated: As of Go 1.16, this function simply calls [os.WriteFile].
    func WriteFile(filename string, data []byte, perm fs.FileMode) error {
    	return os.WriteFile(filename, data, perm)
    }
    
    // ReadDir reads the directory named by dirname and returns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/defaults.go

    func SetDefaults_SecretVolumeSource(obj *v1.SecretVolumeSource) {
    	if obj.DefaultMode == nil {
    		perm := int32(v1.SecretVolumeSourceDefaultMode)
    		obj.DefaultMode = &perm
    	}
    }
    func SetDefaults_ConfigMapVolumeSource(obj *v1.ConfigMapVolumeSource) {
    	if obj.DefaultMode == nil {
    		perm := int32(v1.ConfigMapVolumeSourceDefaultMode)
    		obj.DefaultMode = &perm
    	}
    }
    func SetDefaults_DownwardAPIVolumeSource(obj *v1.DownwardAPIVolumeSource) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:24:15 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. cmd/os_unix.go

    func openFileWithFD(name string, flag int, perm os.FileMode) (fd int, err error) {
    	switch flag & writeMode {
    	case writeMode:
    		defer updateOSMetrics(osMetricOpenFileWFd, name)(err)
    	default:
    		defer updateOSMetrics(osMetricOpenFileRFd, name)(err)
    	}
    	var e error
    	fd, e = syscall.Open(name, flag|syscall.O_CLOEXEC, uint32(perm))
    	if e != nil {
    		return -1, &os.PathError{Op: "open", Path: name, Err: e}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. src/crypto/sha256/sha256block_ppc64x.s

    	XXLOR	VS31, VS31, V17
    	VADDUWM	V16, V6, V6
    	VADDUWM	V17, V7, V7
    
    	CMPU	INP, END
    	BLT	loop
    
    	LVX	(TBL)(R_x000), V8
    	VPERM	V0, V1, KI, V0
    	LVX	(TBL)(R_x010), V9
    	VPERM	V4, V5, KI, V4
    	VPERM	V0, V2, V8, V0
    	VPERM	V4, V6, V8, V4
    	VPERM	V0, V3, V9, V0
    	VPERM	V4, V7, V9, V4
    	STXVD2X	V0, (CTX+R_x000)
    	STXVD2X	V4, (CTX+R_x010)
    
    end:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h

    // attributes besides `data_format` string.
    template <typename Op>
    LogicalResult UpdateDataFormat(StringRef data_format, Op *op) {
      auto perm = GetDataFormatPermutation(op->getDataFormat(), data_format);
      if (perm.empty()) return failure();
    
      // Update data format attribute.
      (*op)->setAttr("data_format", StringAttr::get(op->getContext(), data_format));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/lockedfile/lockedfile_filelock.go

    )
    
    func openFile(name string, flag int, perm fs.FileMode) (*os.File, error) {
    	// On BSD systems, we could add the O_SHLOCK or O_EXLOCK flag to the OpenFile
    	// call instead of locking separately, but we have to support separate locking
    	// calls for Linux and Windows anyway, so it's simpler to use that approach
    	// consistently.
    
    	f, err := os.OpenFile(name, flag&^os.O_TRUNC, perm)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.7K bytes
    - Viewed (0)
Back to top