- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for Memcpy (0.13 sec)
-
tensorflow/c/eager/c_api_experimental_test.cc
TFE_DeleteExecutor(old_executor); TFE_DeleteContext(ctx); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); float product[4] = {0}; EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); TF_DeleteTensor(t); EXPECT_EQ(7, product[0]); EXPECT_EQ(10, product[1]); EXPECT_EQ(15, product[2]); EXPECT_EQ(22, product[3]);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 03:14:26 UTC 2023 - 31.5K bytes - Viewed (0) -
tensorflow/c/tf_tensor.cc
buf = new TF_ManagedBuffer(tensorflow::allocate_tensor("TF_NewTensor", len), len, tensorflow::deallocate_buffer, nullptr, /*owns_memory=*/true); std::memcpy(buf->data(), data, len); // Free the original buffer. deallocator(data, len, deallocator_arg); } else { buf = new TF_ManagedBuffer(data, len, deallocator, deallocator_arg,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/c/kernels.cc
absl::Status s = cc_ctx->GetAttr(attr_name, &v); ::tensorflow::Set_TF_Status_from_Status(status, s); if (!status->status.ok()) return; if (max_length <= 0) { return; } std::memcpy(value, v.data(), std::min<size_t>(v.length(), max_length)); } void TF_OpKernelConstruction_GetAttrStringList(TF_OpKernelConstruction* ctx, const char* attr_name,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 36K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc
if (plugin_ops == nullptr) return nullptr; size_t copy_size = std::min(plugin_size, sizeof(T)); auto core_ops = std::make_unique<T>(); memset(core_ops.get(), 0, sizeof(T)); memcpy(core_ops.get(), plugin_ops, copy_size); return core_ops; } // Registers one filesystem from the plugin. // // Must be called only with `index` a valid index in `info->ops`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 07 22:08:43 UTC 2023 - 12.8K bytes - Viewed (0) -
src/internal/coverage/decodecounter/decodecounterfile.go
} } } else { panic("internal error: unknown counter flavor") } // Alternative/experimental path: one way we could handling writing // out counter data would be to just memcpy the counter segment // out to a file, meaning that a region in the counter memory // corresponding to a dead (never-executed) function would just be // zeroes. The code path below handles this case. var nc uint32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 27 15:29:54 UTC 2023 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/jit/partially_decluster_pass.cc
// Check if `dst` is in a different cluster, unclustered, or about to be // partially declustered (here we rely on the post-order traversal order). // If yes, decluster `n` to avoid the device-to-host memcpy. std::optional<absl::string_view> dst_cluster = result->count(dst) ? std::nullopt : GetXlaClusterForNode(*dst); if (from_cluster != dst_cluster) { CHECK(result->insert(n).second);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 11:36:41 UTC 2024 - 15.7K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
X)) } // issue 30065 func test30065(t *testing.T) { var a [256]byte b := []byte("a") C.memcpy(unsafe.Pointer(&a), unsafe.Pointer(&b[0]), 1) if a[0] != 'a' { t.Errorf("&a failed: got %c, want %c", a[0], 'a') } b = []byte("b") C.memcpy(unsafe.Pointer(&a[0]), unsafe.Pointer(&b[0]), 1) if a[0] != 'b' { t.Errorf("&a[0] failed: got %c, want %c", a[0], 'b') }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get()); std::unique_ptr<float[]> actual_values(new float[expected_values.size()]); EXPECT_EQ(sizeof(float) * expected_values.size(), TF_TensorByteSize(t)); memcpy(actual_values.get(), TF_TensorData(t), TF_TensorByteSize(t)); TF_DeleteTensor(t); for (int i = 0; i < expected_values.size(); i++) { EXPECT_EQ(expected_values[i], actual_values[i])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 10:03:59 UTC 2023 - 19.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
size_t copy_size = 0; if (offset < buffer_end && gcs_file->buffer_start) { copy_size = (std::min)(n, static_cast<size_t>(buffer_end - offset)); memcpy(buffer, gcs_file->buffer.data() + (offset - gcs_file->buffer_start), copy_size); } bool consumed_buffer_to_eof =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 23 06:55:53 UTC 2023 - 46.9K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/object.h
return tensorflow::errors::InvalidArgument(absl::StrCat( "Mismatched number of elements: \n", "Expected: ", data.size(), "\n", "Actual: ", t->NumElements(), "\n")); } memcpy(data.data(), t->Data(), t->ByteSize()); return ::tensorflow::OkStatus(); } /// @brief The Tuple class for holding TaggedValues of type TUPLE. class Tuple : public Handle { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 11 08:05:36 UTC 2023 - 23.6K bytes - Viewed (0)