Skip to content

Conversation

@carlushuang
Copy link
Collaborator

this is much simpler to support bigger tensor size

}

assert(splited_n * image_size < size_4g && n % splited_n == 0);
assert(n / splited_n < size_4g);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the meaning of this assertion

Copy link
Collaborator Author

@carlushuang carlushuang Jan 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to make sure n / splited_n can be hold in int type, since later on will return n / splited_n and the return type is int

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I guess this better removed, in case of confusing.

@carlushuang carlushuang merged commit 02a82d8 into master Jan 29, 2021
@carlushuang carlushuang deleted the split_4G_pices_per_batch branch January 29, 2021 08:07
carlushuang added a commit that referenced this pull request Jan 29, 2021
* fwd support split batch

* remove confusing assert

* fix several >4G address type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants