- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 188 for malloc (0.04 sec)
-
tensorflow/c/eager/c_api_experimental.cc
} const void TFE_MonitoringStringGaugeCellValue( TFE_MonitoringStringGaugeCell* cell, TF_Buffer* buf) { tensorflow::string value = cell->cell.value(); void* data = tensorflow::port::Malloc(value.length()); value.copy(static_cast<char*>(data), value.length(), 0); buf->data = data; buf->length = value.length(); buf->data_deallocator = [](void* data, size_t length) { tensorflow::port::Free(data);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 35.9K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
*len = debug_str.size(); char* ret = static_cast<char*>(malloc(*len + 1)); memcpy(ret, debug_str.c_str(), *len + 1); return ret; } char* TF_FunctionDebugString(TF_Function* func, size_t* len) { const auto& debug_str = DebugString(func->record->fdef()); *len = debug_str.size(); char* ret = static_cast<char*>(malloc(*len + 1)); memcpy(ret, debug_str.c_str(), *len + 1); return ret; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 29.5K bytes - Viewed (0) -
src/cmd/cgo/doc.go
func C.GoBytes(unsafe.Pointer, C.int) []byte As a special case, C.malloc does not call the C library malloc directly but instead calls a Go helper function that wraps the C library malloc but guarantees never to return nil. If C's malloc indicates out of memory, the helper function crashes the program, like when Go itself runs out of memory. Because C.malloc cannot fail, it has no two-result form that returns errno.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Oct 01 22:52:54 UTC 2024 - 44K bytes - Viewed (0) -
src/cmd/cgo/ast.go
if goname == "errno" { error_(sel.Pos(), "cannot refer to errno directly; see documentation") return } if goname == "_CMalloc" { error_(sel.Pos(), "cannot refer to C._CMalloc; use C.malloc") return } if goname == "malloc" { goname = "_CMalloc" } name := f.Name[goname] if name == nil { name = &Name{ Go: goname, } f.Name[goname] = name
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Oct 14 15:47:06 UTC 2024 - 14.3K bytes - Viewed (0) -
fastapi/openapi/models.py
return with_info_plain_validator_function(cls._validate) class BaseModelWithConfig(BaseModel): if PYDANTIC_V2: model_config = {"extra": "allow"} else: class Config: extra = "allow" class Contact(BaseModelWithConfig): name: Optional[str] = None url: Optional[AnyUrl] = None email: Optional[EmailStr] = None
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 22:49:33 UTC 2024 - 15K bytes - Viewed (0) -
guava/src/com/google/common/io/TempFileCreator.java
ImmutableList<AclEntry> acl = ImmutableList.of( AclEntry.newBuilder() .setType(ALLOW) .setPrincipal(user) .setPermissions(EnumSet.allOf(AclEntryPermission.class)) .setFlags(DIRECTORY_INHERIT, FILE_INHERIT) .build()); FileAttribute<ImmutableList<AclEntry>> attribute =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 12.5K bytes - Viewed (0) -
cmd/metacache-stream.go
} if err := w.mw.Flush(); err != nil { return err } return s2w.Close() } return nil } } var s2DecPool = sync.Pool{New: func() interface{} { // Default alloc block for network transfer. return s2.NewReader(nil, s2.ReaderAllocBlock(16<<10)) }} // metacacheReader allows reading a cache stream. type metacacheReader struct { mr *msgp.Reader
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 19.5K bytes - Viewed (0) -
cmd/kms-handlers_test.go
asRoot: false, policy: `{"Effect": "Allow", "Action": ["kms:CreateKey"] }`, wantStatusCode: http.StatusOK, }, { name: "create key as user set policy to allow want success", method: http.MethodPost, path: kmsKeyCreatePath, query: map[string]string{"key-id": "second-new-test-key"}, asRoot: false, policy: `{"Effect": "Allow", "Action": ["kms:CreateKey"],
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 22.3K bytes - Viewed (0) -
cmd/admin-handlers-users_test.go
policy := "mypolicy-test-user-update" policyBytes := []byte(fmt.Sprintf(`{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::%s" ] }, { "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject" ], "Resource": [ "arn:aws:s3:::%s/*" ] } ]
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 22 00:33:43 UTC 2024 - 47.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
Mall<Outdoor>.Shop<Grocery> shop) { return notSubtype(shop); } @TestSubtype public Mall<Outdoor>.Shop<Electronics> innerTypeDoesNotMatch_subtypeWithWildcard( Mall<Outdoor>.Shop<? extends Electronics> shop) { return notSubtype(shop); } @TestSubtype
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 20.3K bytes - Viewed (0)