- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,027 for methods_ (0.12 sec)
-
tensorflow/c/eager/c_api.cc
: tensorflow::CustomDeviceTensorHandle(context, device, dtype), data_(data), methods_(methods) {} ~CAPICustomDeviceTensorHandle() override { methods_.deallocator(data_); } void* DevicePointer() const override { return data_; } Status NumDims(int* num_dims) const override { TF_Status s; *num_dims = methods_.num_dims(data_, &s); return s.status;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0) -
src/go/types/methodset.go
// This file implements method sets. package types import ( "fmt" "sort" "strings" ) // A MethodSet is an ordered set of concrete or abstract (interface) methods; // a method is a [MethodVal] selection, and they are ordered by ascending m.Obj().Id(). // The zero value for a MethodSet is a ready-to-use empty method set. type MethodSet struct { list []*Selection }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/MethodSet.java
public void add(Method method) { MethodKey key = new MethodKey(method); Method current = methods.get(key); if (current == null || shouldReplace(current, method)) { // Prefer implementation methods over abstract or bridge methods methods.put(key, method); } } private boolean shouldReplace(Method current, Method method) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/Methods.java
protected int doHash(Method method) { return new HashCodeBuilder() .append(method.getName()) .append(method.getParameterTypes()) .toHashCode(); } }; /** * Equivalence of methods based on method name, the number, type and order of parameters, and return types. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.7K bytes - Viewed (0) -
src/internal/types/testdata/examples/methods.go
// This file shows some examples of methods on type-parameterized types. package p // Parameterized types may have methods. type T1[A any] struct{ a A } // When declaring a method for a parameterized type, the "instantiated" // receiver type acts as an implicit declaration of the type parameters // for the receiver type. In the example below, method m1 on type T1 has
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5K bytes - Viewed (0) -
test/method4.dir/method4a.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test method expressions with arguments. package method4a type T1 int type T2 struct { F int } type I1 interface { Sum([]int, int) int } type I2 interface { Sum(a []int, b int) int } func (i T1) Sum(a []int, b int) int { r := int(i) + b
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 07 21:22:01 UTC 2012 - 557 bytes - Viewed (0) -
test/method3.go
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test methods on slices. package main type T []int func (t T) Len() int { return len(t) } type I interface { Len() int } func main() { var t T = T{0, 1, 2, 3, 4} var i I i = t if i.Len() != 5 { println("i.Len", i.Len())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 07:47:26 UTC 2012 - 570 bytes - Viewed (0) -
src/net/http/method.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package http // Common HTTP methods. // // Unless otherwise noted, these are defined in RFC 7231 section 4.3. const ( MethodGet = "GET" MethodHead = "HEAD" MethodPost = "POST" MethodPut = "PUT" MethodPatch = "PATCH" // RFC 5789 MethodDelete = "DELETE"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 04 22:11:56 UTC 2016 - 517 bytes - Viewed (0) -
src/cmd/vet/testdata/method/method.go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains the code to check canonical methods. package method import "fmt" type MethodTest int func (t *MethodTest) Scan(x fmt.ScanState, c byte) { // ERROR "should have signature Scan\(fmt\.ScanState, rune\) error"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 394 bytes - Viewed (0) -
test/method.go
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test simple methods of various types, with pointer and // value receivers. package main type S string type S1 string type I int type I1 int type T struct { x int } type T1 T func (s S) val() int { return 1 } func (s *S1) val() int { return 2 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 11 23:20:52 UTC 2013 - 5.2K bytes - Viewed (0)