-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/tensor array lod pack #5007
Feature/tensor array lod pack #5007
Conversation
* returns a new LoDTensor | ||
* - [a0 a0 a0 a1 a1] | ||
*/ | ||
template <typename T> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function can be used for LodExpandOp
…/tensor_array_lod_pack_unpack
…erjom/Paddle into feature/tensor_array_lod_pack_unpack
…/tensor_array_lod_pack_unpack
@@ -126,5 +126,57 @@ TEST_F(TensorArrayTester, size) { | |||
ASSERT_EQ(ta.size(), static_cast<size_t>(batch_size)); | |||
} | |||
|
|||
TEST(TensorArray, LodPack) { | |||
// three time steps, each step stores a LoDTensors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add more explanation of this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add in next PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
fixes: #4976