Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 629 for getInf (0.16 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

      for (int i = 0; i < low_pads.size(); ++i) {
        new_low_pads[i] = low_pads[i].getInt() + parent_low_pads[i].getInt();
        new_high_pads[i] = high_pads[i].getInt() + parent_high_pads[i].getInt();
        new_interior_pads[i] =
            interior_pads[i].getInt() + parent_interior_pads[i].getInt();
      }
    
      // Replace pad_op with a new pad having new attributes, taking the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. src/crypto/x509/root_unix_test.go

    			cns:     []string{testFileCN, testDirCN},
    		},
    	}
    
    	// Save old settings so we can restore before the test ends.
    	origCertFiles, origCertDirectories := certFiles, certDirectories
    	origFile, origDir := os.Getenv(certFileEnv), os.Getenv(certDirEnv)
    	defer func() {
    		certFiles = origCertFiles
    		certDirectories = origCertDirectories
    		os.Setenv(certFileEnv, origFile)
    		os.Setenv(certDirEnv, origDir)
    	}()
    
    	for _, tc := range testCases {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/cgo.go

    				}()
    				var s *string
    				*s = ""
    				fmt.Printf("continued after expected panic\n")
    			}()
    		}
    	}()
    	time.Sleep(time.Millisecond)
    	start := time.Now()
    	var times []time.Duration
    	n := 64
    	if os.Getenv("RUNTIME_TEST_SHORT") != "" {
    		n = 16
    	}
    	for i := 0; i < n; i++ {
    		go func() {
    			runtime.LockOSThread()
    			select {}
    		}()
    		go func() {
    			runtime.LockOSThread()
    			select {}
    		}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 13:20:27 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/windows/env_windows.go

    // license that can be found in the LICENSE file.
    
    // Windows environment variables.
    
    package windows
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func Getenv(key string) (value string, found bool) {
    	return syscall.Getenv(key)
    }
    
    func Setenv(key, value string) error {
    	return syscall.Setenv(key, value)
    }
    
    func Clearenv() {
    	syscall.Clearenv()
    }
    
    func Environ() []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 20:35:26 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/NamedOperation.groovy

        String toString() {
            return "[operation $name]"
        }
    
        Instant getEnd() {
            def instant = end.get()
            if (instant == null) {
                throw new IllegalStateException("Operation '$name' has not completed yet.")
            }
            return instant
        }
    
        Duration getDuration() {
            return getEnd() - start
        }
    
        void completed(Instant when) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/fixtures/IdeCommandLineUtil.groovy

                    Properties properties = new Properties()
                    properties.JAVA_HOME = String.valueOf(System.getenv('JAVA_HOME'))
                    properties.GRADLE_USER_HOME = String.valueOf(gradle.gradleUserHomeDir.absolutePath)
                    properties.GRADLE_OPTS = String.valueOf(System.getenv('GRADLE_OPTS'))
                    return properties
                }
    
                void assertEquals(key, expected, actual) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. internal/disk/stat_bsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. tests/tests_test.go

    			log.Printf("failed to ping sqlDB, got error %v", err)
    			os.Exit(1)
    		}
    
    		RunMigrations()
    	}
    }
    
    func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) {
    	dbDSN := os.Getenv("GORM_DSN")
    	switch os.Getenv("GORM_DIALECT") {
    	case "mysql":
    		log.Println("testing mysql...")
    		if dbDSN == "" {
    			dbDSN = mysqlDSN
    		}
    		db, err = gorm.Open(mysql.Open(dbDSN), cfg)
    	case "postgres":
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/sigfwd.go

    			fprintf(stderr, "SIGSEGV caught in C unexpectedly\n");
    			exit(1);
    		}
    		fprintf(stdout, "OK\n");
    		exit(0);  // success
    	}
    }
    
    static void __attribute__ ((constructor)) sigsetup(void) {
    	if (getenv("GO_TEST_CGOSIGFWD") == NULL) {
    		return;
    	}
    
    	struct sigaction act;
    
    	memset(&act, 0, sizeof act);
    	act.sa_handler = segvhandler;
    	sigaction(SIGSEGV, &act, NULL);
    }
    */
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 17:06:49 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/replica_id_to_device_ordinal.cc

        for (auto op : require_device_ordinal_ops) {
          if (op->getAttrOfType<IntegerAttr>(kDeviceOrdinalAttr).getInt() == -1) {
            OpBuilder builder(op);
            int device_ordinal =
                op->getAttrOfType<IntegerAttr>(kReplicaIdAttr).getInt() %
                device_num;
            op->setAttr(kDeviceOrdinalAttr,
                        builder.getI64IntegerAttr(device_ordinal));
          }
        }
      }
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4K bytes
    - Viewed (0)
Back to top