- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 351 for dtoi (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/device_util.cc
llvm::SmallVector<llvm::StringRef, 3> cc; if (r->match(device.attributes().physical_device_desc(), &cc)) { return mlir::TF::GpuDeviceMetadata::get( builder->getContext(), std::stoi(cc[1].str()), std::stoi(cc[2].str())); } return builder->getUnitAttr(); } // Get devices from an array of string attributes. // TODO(ezhulenev): Update all tests to use dictionary attribute for
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.4K bytes - Viewed (0) -
src/os/user/cgo_listgroups_unix.go
package user import ( "fmt" "strconv" "unsafe" ) const maxGroups = 2048 func listGroups(u *User) ([]string, error) { ug, err := strconv.Atoi(u.Gid) if err != nil { return nil, fmt.Errorf("user: list groups for %s: invalid gid %q", u.Username, u.Gid) } userGID := _C_gid_t(ug) nameC := make([]byte, len(u.Username)+1) copy(nameC, u.Username)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 11 04:31:34 UTC 2022 - 1.7K bytes - Viewed (0) -
test/ken/rob2.go
slist.atom.integer = i slist.isstring = false } else { slist.atom.str = string(tokenbuf[0:tokenlen]) slist.isstring = true } slist.isatom = true return slist } func atoi() int { // BUG: uses tokenbuf; should take argument) var v int = 0 for i := 0; i < tokenlen && '0' <= tokenbuf[i] && tokenbuf[i] <= '9'; i = i + 1 { v = 10*v + int(tokenbuf[i]-'0') } return v }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go
// it is a String, will attempt a conversion to int, // returning 0 if a parsing error occurs. func (intstr *IntOrString) IntValue() int { if intstr.Type == String { i, _ := strconv.Atoi(intstr.StrVal) return i } return int(intstr.IntVal) } // MarshalJSON implements the json.Marshaller interface. func (intstr IntOrString) MarshalJSON() ([]byte, error) { switch intstr.Type {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils.go
var inter interval var err error inter.First, err = strconv.Atoi(limitsStr[0]) if err != nil { logger.Info("Corrupted indexes interval, ignoring", "interval", intervalStr, "err", err) continue } if inter.First >= completions { break } if len(limitsStr) > 1 { inter.Last, err = strconv.Atoi(limitsStr[1]) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 00:44:53 UTC 2023 - 17.5K bytes - Viewed (0) -
src/os/user/cgo_lookup_unix.go
} if err != nil { return nil, fmt.Errorf("user: lookup username %s: %v", username, err) } return buildUser(&pwd), err } func lookupUserId(uid string) (*User, error) { i, e := strconv.Atoi(uid) if e != nil { return nil, e } return lookupUnixUid(i) } func lookupUnixUid(uid int) (*User, error) { var pwd _C_struct_passwd var found bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:08:14 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/probe/tcp/tcp_test.go
w.WriteHeader(http.StatusOK) })) defer server.Close() tHost, tPortStr, err := net.SplitHostPort(server.Listener.Addr().String()) if err != nil { t.Errorf("unexpected error: %v", err) } tPort, err := strconv.Atoi(tPortStr) if err != nil { t.Errorf("unexpected error: %v", err) } tests := []struct { host string port int expectedStatus probe.Result expectedError error }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 25 18:23:33 UTC 2017 - 1.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/test2json_interrupt.txt
if !sentInterrupt { // Simulate a ctrl-C on the keyboard by sending SIGINT // to the main test process and its parent. for _, pid := range strings.Split(pids, ",") { i, err := strconv.Atoi(pid) if err != nil { t.Fatal(err) } if p, err := os.FindProcess(i); err == nil { p.Signal(os.Interrupt) sentInterrupt = true // Only send interrupts once. } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 08 03:52:44 UTC 2022 - 1.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go
flag := m[3] fn = knownFunc[fnName][arch] if fn != nil { size, _ := strconv.Atoi(m[5]) if size != fn.size && (flag != "7" && !strings.Contains(flag, "NOSPLIT") || size != 0) { badf("wrong argument size %d; expected $...-%d", size, fn.size) } } localSize, _ = strconv.Atoi(m[4]) localSize += archDef.intSize if archDef.lr && !strings.Contains(flag, "NOFRAME") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 22.8K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/index.go
for i, t := range sampleTypes(p) { if t == dst { return i, nil } } } // By default select the last sample value return len(p.SampleType) - 1, nil } if i, err := strconv.Atoi(sampleIndex); err == nil { if i < 0 || i >= len(p.SampleType) { return 0, fmt.Errorf("sample_index %s is outside the range [0..%d]", sampleIndex, len(p.SampleType)-1) } return i, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 19:18:53 UTC 2017 - 1.9K bytes - Viewed (0)