Skip to content

Commit 35faa7c

Browse files
committed
try datatype
1 parent 077266b commit 35faa7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/src/plasma/tensorflow_op/tf_plasma_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class TensorToPlasmaOp : public AsyncOpKernel {
284284
for (int i = 0; i < num_tensors; ++i) {
285285
const auto& input_tensor = context->input(i);
286286
std::memcpy(static_cast<void*>(data + offsets[i] / byte_width),
287-
input_tensor.flat<float>().data(),
287+
input_tensor.flat<tf_dtype::Type>().data(),
288288
static_cast<uint64>(offsets[i + 1] - offsets[i]));
289289
}
290290
wrapped_callback();

0 commit comments

Comments
 (0)