- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 105 for add_func (0.33 sec)
-
tensorflow/cc/experimental/libtf/tests/object_test.cc
} TEST(ObjectTest, TestCast) { Integer i(3); auto result = Cast<String>(i); ASSERT_TRUE(!result.ok()); } TEST(ObjectTest, TestCall) { TaggedValue add_func(AddIntegers); Callable add(add_func); TF_ASSERT_OK_AND_ASSIGN(Integer i, add.Call<Integer>(Integer(1), Integer(10))); EXPECT_EQ(i.get(), 11); TF_ASSERT_OK_AND_ASSIGN(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jul 28 21:37:07 UTC 2021 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/jit/compilability_check_util_test.cc
namespace tensorflow { namespace { AttrValue FuncListAttr(const absl::Span<const char* const> names) { AttrValue attr; for (const char* name : names) { attr.mutable_list()->add_func()->set_name(name); } return attr; } constexpr char kFunctionalIfNodeName[] = "If"; constexpr char kFunctionalCaseNodeName[] = "Case"; constexpr char kFunctionalWhileNodeName[] = "While";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 10 12:32:39 UTC 2022 - 22.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc
*list->add_tensor() = tensor; } else if (auto attr = mlir::dyn_cast<mlir::FlatSymbolRefAttr>(a)) { AttrValue attr_val; TF_RETURN_IF_ERROR(ConvertAttribute(attr, &attr_val)); *list->add_func() = attr_val.func(); } else if (auto attr = mlir::dyn_cast<mlir::TypeAttr>(a)) { AttrValue attr_val; // For type attributes, we only propagate the element type. mlir::Type elt_type = attr.getValue();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 19.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go
e := Equalities{} if err := e.AddFuncs(funcs...); err != nil { panic(err) } return e } // AddFuncs is a shortcut for multiple calls to AddFunc. func (e Equalities) AddFuncs(funcs ...interface{}) error { for _, f := range funcs { if err := e.AddFunc(f); err != nil { return err } } return nil } // AddFunc uses func as an equality function: it must take
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 20 17:18:42 UTC 2022 - 10.8K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt.go
// AddFunc calls), then we could not definitively select the // correct callee. val += int(ops.m(42, int64(ops.a(1, 2)))) } return val } //go:noinline func AddClosure() AddFunc { // Implicit closure by capturing the receiver. var a Add return a.Add } //go:noinline func SubClosure() AddFunc { var s Sub return s.Add }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 13 18:17:57 UTC 2023 - 6.2K bytes - Viewed (0) -
src/net/sock_posix.go
lsa, _ = syscall.Getsockname(fd.pfd.Sysfd) if crsa != nil { fd.setAddr(fd.addrFunc()(lsa), fd.addrFunc()(crsa)) } else if rsa, _ = syscall.Getpeername(fd.pfd.Sysfd); rsa != nil { fd.setAddr(fd.addrFunc()(lsa), fd.addrFunc()(rsa)) } else { fd.setAddr(fd.addrFunc()(lsa), raddr) } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 6.3K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/graph_populator.go
AddFunc: g.addPod, UpdateFunc: g.updatePod, DeleteFunc: g.deletePod, }) pvsHandler, _ := pvs.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ AddFunc: g.addPV, UpdateFunc: g.updatePV, DeleteFunc: g.deletePV, }) attachHandler, _ := attachments.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ AddFunc: g.addVolumeAttachment,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 6.5K bytes - Viewed (0) -
pkg/kube/controllers/common.go
type EventHandler[T Object] struct { AddFunc func(obj T) AddExtendedFunc func(obj T, initialSync bool) UpdateFunc func(oldObj, newObj T) DeleteFunc func(obj T) } func (e EventHandler[T]) OnAdd(obj interface{}, initialSync bool) { if e.AddExtendedFunc != nil { e.AddExtendedFunc(Extract[T](obj), initialSync) } else if e.AddFunc != nil { e.AddFunc(Extract[T](obj)) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 08:27:29 UTC 2024 - 8.9K bytes - Viewed (0) -
src/internal/coverage/test/roundtrip_test.go
coverage.CoverableUnit{StLine: 1, StCol: 2, EnLine: 3, EnCol: 4, NxStmts: 5}, coverage.CoverableUnit{StLine: 6, StCol: 7, EnLine: 8, EnCol: 9, NxStmts: 10}, }, } idx := b.AddFunc(f1) if idx != 0 { t.Errorf("b.AddFunc(f1) got %d want %d", idx, 0) } f2 := coverage.FuncDesc{ Funcname: "xfunc", Srcfile: "bar.go", Units: []coverage.CoverableUnit{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 21:42:05 UTC 2023 - 8.5K bytes - Viewed (0) -
src/net/file_unix.go
default: poll.CloseFunc(s) return nil, syscall.EPROTONOSUPPORT } fd, err := newFD(s, family, sotype, "") if err != nil { poll.CloseFunc(s) return nil, err } laddr := fd.addrFunc()(lsa) raddr := fd.addrFunc()(rsa) fd.net = laddr.Network() if err := fd.init(); err != nil { fd.Close() return nil, err } fd.setAddr(laddr, raddr) return fd, nil } func fileConn(f *os.File) (Conn, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 2.5K bytes - Viewed (0)