- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for Memcpy (0.18 sec)
-
tensorflow/c/eager/c_api_test.cc
EXPECT_EQ(TF_FLOAT, TFE_TensorHandleDataType(h)); TF_Tensor* t = TFE_TensorHandleResolve(h, status.get()); ASSERT_EQ(16, TF_TensorByteSize(t)); float data[4] = {0}; memcpy(&data[0], TF_TensorData(t), TF_TensorByteSize(t)); EXPECT_EQ(1.0, data[0]); EXPECT_EQ(2.0, data[1]); EXPECT_EQ(3.0, data[2]); EXPECT_EQ(4.0, data[3]); TF_DeleteTensor(t); TFE_DeleteTensorHandle(h);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/c/kernels_test.cc
OpKernelContext* cc_ctx = reinterpret_cast<OpKernelContext*>(ctx); cc_ctx->eigen_gpu_device().memcpyHostToDevice(data, values, tensor_size_bytes); #else memcpy(data, values, tensor_size_bytes); #endif }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 50.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
auto status = absl::OkStatus(); std::vector<uint8_t> custom_options; if (IsValidBufferOffset(op.large_custom_options_offset)) { custom_options.resize(op.large_custom_options_size); memcpy(custom_options.data(), reinterpret_cast<const uint8_t*>(model_ptr->allocation()->base()) + op.large_custom_options_offset, op.large_custom_options_size); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
// [11, 23]] # == 2nd column in filter // This is exactly what the EmbeddedLookup operator is doing, on the transposed // matrix, without doing any arithmetic but only memcpy. def ReplaceOneHotFullyConnectedWithLookup : Pat< (TFL_FullyConnectedOp:$outputs (TFL_OneHotOp AnyStaticShapeTensor:$indices, (Arith_ConstantOp $depth),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 20:31:41 UTC 2024 - 66.4K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
} TF_Tensor* FloatTensor2x2(const float* values) { const int64_t dims[2] = {2, 2}; TF_Tensor* t = TF_AllocateTensor(TF_FLOAT, dims, 2, sizeof(float) * 4); memcpy(TF_TensorData(t), values, sizeof(float) * 4); return t; } TF_Operation* FloatConst2x2(TF_Graph* graph, TF_Status* s, const float* values, const char* name) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0)