- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 116 for dtoi (0.17 sec)
-
tensorflow/cc/client/client_session.cc
CHECK_NOTNULL(impl()->session_.get()); } // Define destructor here so we can forward declare `Impl` in client_session.h. // If we define a dtor in the header file or use the default dtor, // unique_ptr<Impl> needs the complete type. ClientSession::~ClientSession() {} SessionOptions ClientSession::Impl::MakeDefaultSessionOptions( const string& target) { SessionOptions options;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 09:04:10 UTC 2024 - 7.1K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/binutils/addr2liner_llvm.go
} else { switch split := strings.Split(fileline, ":"); len(split) { case 3: // filename:line:column if col, err := strconv.Atoi(split[2]); err == nil { columnnumber = col } fallthrough case 2: // filename:line if line, err := strconv.Atoi(split[1]); err == nil { linenumber = line } fallthrough case 1: // filename fileline = split[0] default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/probe/util.go
case intstr.Int: port = param.IntValue() case intstr.String: if port, err = findPortByName(container, param.StrVal); err != nil { // Last ditch effort - maybe it was an int stored as string? if port, err = strconv.Atoi(param.StrVal); err != nil { return port, err } } default: return port, fmt.Errorf("intOrString had no kind: %+v", param) } if port > 0 && port < 65536 { return port, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 19 16:51:52 UTC 2022 - 1.6K bytes - Viewed (0) -
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) -
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) -
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) -
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/go/internal/base/limit.go
// be allowed. func NetLimit() (int, bool) { netLimitOnce.Do(func() { s := NetLimitGodebug.Value() if s == "" { return } n, err := strconv.Atoi(s) if err != nil { Fatalf("invalid %s: %v", NetLimitGodebug.Name(), err) } if n < 0 { // Treat negative values as unlimited. return } netLimitSem = make(chan struct{}, n) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 02:47:12 UTC 2023 - 1.9K bytes - Viewed (0) -
operator/pkg/util/path.go
} // IsNPathElement report whether pe is an index path element. func IsNPathElement(pe string) bool { pe, ok := RemoveBrackets(pe) if !ok { return false } n, err := strconv.Atoi(pe) return err == nil && n >= InsertIndex } // PathKV returns the key and value string parts of the entire key/value path element. // It returns an error if pe is not a key/value path element.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 12 17:12:54 UTC 2023 - 5.5K bytes - Viewed (0)