- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for StrLen (0.04 sec)
-
src/cmd/cgo/gcc.go
strdata := make(map[int]string, nnames) strlens := make(map[int]int, nnames) buildStrings := func() { for n, strlen := range strlens { data := strdata[n] if len(data) <= strlen { fatalf("invalid string literal") } strs[n] = data[:strlen] } } if f, err := macho.Open(gccTmp()); err == nil { defer f.Close() d, err := f.DWARF() if err != nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 18 15:07:34 UTC 2024 - 97.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
std::strncpy(buffer, "VALID", BUFFER_SIZE); TFE_OpSetAttrString(op, "padding", buffer, std::strlen(buffer)); // Overwriting value in "buffer", should be fine since TFE_Op // shouldn't be holding on to it. std::strncpy(buffer, "NHWC", BUFFER_SIZE); TFE_OpSetAttrString(op, "data_format", buffer, std::strlen(buffer)); TFE_OpSetAttrType(op, "T", TF_FLOAT);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
TF_Operation** op) { TF_OperationDescription* desc = TF_NewOperation(graph, "Placeholder", name); TF_SetAttrType(desc, "dtype", TF_INT32); TF_SetAttrString(desc, attr_name, attr_value, strlen(attr_value)); *op = TF_FinishOperation(desc, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); ASSERT_NE(*op, nullptr); } TEST_F(CApiFunctionTest, GraphToFunctionDefWithArgAttr) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0)