- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for argNum (0.31 sec)
-
src/fmt/errors.go
w.err, _ = a[p.wrappedErrs[0]].(error) err = w default: if p.reordered { slices.Sort(p.wrappedErrs) } var errs []error for i, argNum := range p.wrappedErrs { if i > 0 && p.wrappedErrs[i-1] == argNum { continue } if e, ok := a[argNum].(error); ok { errs = append(errs, e) } } err = &wrapErrors{s, errs} } p.free() return err } type wrapError struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 1.7K bytes - Viewed (0) -
src/fmt/print.go
func intFromArg(a []any, argNum int) (num int, isInt bool, newArgNum int) { newArgNum = argNum if argNum < len(a) { num, isInt = a[argNum].(int) // Almost always OK. if !isInt { // Work harder. switch v := reflect.ValueOf(a[argNum]); v.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: n := v.Int()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go
// Similarly so for return values: ret, ret1, ret2, ... name := "arg" if isret { name = "ret" } if argnum > 0 { name += strconv.Itoa(argnum) } names = []*ast.Ident{ast.NewIdent(name)} } argnum += len(names) // Create variable for each name. for _, id := range names { name := id.Name for _, c := range cc {
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/internal/trace/internal/oldtrace/parser.go
for i, a := range desc.Args { fmt.Fprintf(w, " %s=%d", a, ev.Args[i]) } return w.String() } // argNum returns total number of args for the event accounting for timestamps, // sequence numbers and differences between trace format versions. func (raw *rawEvent) argNum() int { desc := &EventDescriptions[raw.typ] if raw.typ == EvStack { return len(raw.args) } narg := len(desc.Args)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:15:28 UTC 2024 - 46.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
// Get block size for the first convolution. int64_t block_size = GetConv2DBlockSize(conv2d); auto arg_num = arg_num_and_num_users.value().arg_num; auto num_users = arg_num_and_num_users.value().num_users; argnum_and_convolutions[arg_num].emplace_back(conv2d, block_size); argnum_num_users[arg_num] = num_users; return WalkResult::interrupt(); } return WalkResult::advance(); });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.cc
int arg_num = compilation_result->input_mapping[i]; CHECK_GE(arg_num, missing_ctx_input_prefix); const xla::Shape& device_shape = compilation_result->xla_input_shapes[i]; const xla::Shape& host_shape = xla::ShapeUtil::DeviceShapeToHostShape(device_shape); auto resource_var_it = resource_vars.find(arg_num);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 40.4K bytes - Viewed (0) -
internal/grid/grid_test.go
const wantString = testPayload + testPayload if resp.OrgString != testPayload+testPayload { t.Errorf("want %q, got %q", wantString, resp.OrgString) } if resp.OrgNum != n+1 { t.Errorf("want %d, got %d", n+1, resp.OrgNum) } handler.PutResponse(resp) n++ return nil }) errFatal(err) t.Log("EOF.", payloads, " Roundtrips:", time.Since(start)) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 36.4K bytes - Viewed (0) -
src/net/tcpsock_posix.go
// This can only happen when we are letting the kernel pick a port (laddr == nil) // and when there is no listener for the destination address. // It's hard to argue this is anything other than a kernel bug. If we // see this happen, rather than expose the buggy effect to users, we // close the fd and try again. If it happens twice more, we relent and // use the result. See also:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/aot/codegen.cc
// temp bytes aligned: {{TEMP_BYTES_ALIGNED}} class {{CLASS}} final : public tensorflow::XlaCompiledCpuFunction { public: // Number of input arguments for the compiled computation. static constexpr size_t kNumArgs = {{ARG_NUM}}; static constexpr size_t kNumResults = {{RESULT_NUM}}; // Number of variables for the compiled computation. static constexpr size_t kNumVariables = {{VARIABLE_NUM}};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 01:20:01 UTC 2024 - 36.8K bytes - Viewed (0) -
internal/grid/benchmark_test.go
defer PutByteBuffer(payload) return append(GetByteBuffer()[:0], payload...), nil })) errFatal(rpc.Register(remote, func(req *testRequest) (resp *testResponse, err *RemoteErr) { return &testResponse{ OrgNum: req.Num, OrgString: req.String, Embedded: *req, }, nil })) errFatal(err) } const payloadSize = 512 rng := rand.New(rand.NewSource(time.Now().UnixNano()))
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.7K bytes - Viewed (0)