- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 341 for pointers (0.31 seconds)
-
internal/once/singleton.go
package once // Singleton contains a pointer to T that must be set once. // Until the value is set all Get() calls will block. type Singleton[T any] struct { v *T set chan struct{} } // NewSingleton creates a new unset singleton. func NewSingleton[T any]() *Singleton[T] { return &Singleton[T]{set: make(chan struct{}), v: nil} } // Get will return the singleton value. func (s *Singleton[T]) Get() *T { <-s.set return s.v
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 952 bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/DependencyLicensesTask.java
} private void checkFile(String name, String jarName, Map<String, Boolean> counters, String type) { String fileName = getFileName(name, counters, type); if (counters.containsKey(fileName) == false) { throw new GradleException("Missing " + type + " for " + jarName + ", expected in " + fileName); } counters.put(fileName, true); }Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Jul 26 12:16:14 GMT 2021 - 14.3K bytes - Click Count (0) -
.golangci.yml
version: "2" linters: default: none enable: - durationcheck - forcetypeassert - gocritic - gomodguard - govet - ineffassign - misspell - revive - staticcheck - unconvert - unused - usetesting - whitespace settings: misspell: locale: US staticcheck: checks: - all - -SA1008 - -SA1019 - -SA4000Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 1.2K bytes - Click Count (0) -
tensorflow/c/eager/c_api_experimental_reader.h
#ifdef __cplusplus extern "C" { #endif // Test only exports of the monitoring Cell Reader API which allows tests to // read current values from streamz counters defined in other modules. // // The code under test will have created streamz counters like this: // auto* streamz = tensorflow::monitoring::Counter<1>::New("name", // "description", "label"); // and then incremented that counter for various values of label:Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Nov 20 03:41:38 GMT 2025 - 2.3K bytes - Click Count (0) -
tensorflow/c/eager/dlpack.h
namespace tensorflow { // PyCapsule name for DLPack Tensor const char* const kDlTensorCapsuleName = "dltensor"; // Returns the DLDevice* for the given eager tensor handle. // // The caller takes ownership of the returned pointer and is responsible for // deleting it. TF_CAPI_EXPORT extern void* TFE_GetDLDevice(TFE_TensorHandle* h, TF_Status* status);Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Mar 13 23:41:52 GMT 2025 - 1.9K bytes - Click Count (0) -
schema/schema_test.go
} } func TestParseSchemaWithPointerFields(t *testing.T) { user, err := schema.Parse(&User{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse pointer user, got error %v", err) } checkUserSchema(t, user) } func checkUserSchema(t *testing.T, user *schema.Schema) { // check schema
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Aug 28 02:57:17 GMT 2025 - 13.3K bytes - Click Count (0) -
cmd/os-dirent_namelen_linux.go
"fmt" "syscall" "unsafe" ) func direntNamlen(dirent *syscall.Dirent) (uint64, error) { const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name)) nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0])) const nameBufLen = uint16(len(nameBuf)) limit := dirent.Reclen - fixedHdr if limit > nameBufLen { limit = nameBufLen } // Avoid bugs in long file names
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 19 01:35:22 GMT 2021 - 1.5K bytes - Click Count (0) -
tensorflow/c/eager/gradient_checker.h
* I.e. if y = <output of the forward model> and w = inputs[input_index], * this will calculate dy/dw numerically. * * `use_function` indicates whether to use graph mode(true) or eager(false). * * `numerical_grad` is the pointer to the AbstractTensorHandle* which will * hold the numerical gradient data at the end of the function. */ absl::Status CalcNumericalGrad(AbstractContext* ctx, Model forward,
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 1.8K bytes - Click Count (0) -
schema/field.go
if _, ok := field.TagSettings["EMBEDDED"]; ok || !fieldStruct.Anonymous { ef.EmbeddedBindNames = append([]string{fieldStruct.Name}, ef.EmbeddedBindNames...) } // index is negative means is pointer if field.FieldType.Kind() == reflect.Struct { ef.StructField.Index = append([]int{fieldStruct.Index[0]}, ef.StructField.Index...) } else {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Nov 22 03:14:36 GMT 2025 - 32.2K bytes - Click Count (0) -
src/main/webapp/js/login.js
$submitButton.closest("form").trigger("submit"); } return false; } }); $(".table tr[data-href]").each(function() { var $row = $(this); $row.css("cursor", "pointer") .on("mouseenter", function() { $(this).addClass("active"); }) .on("mouseleave", function() { $(this).removeClass("active"); }) .on("click", function() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 21 13:12:50 GMT 2025 - 1.3K bytes - Click Count (0)