Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Update Repeat to Fluent API#1524

Merged
mergify[bot] merged 3 commits intoplaidml-v1from
tzerrell-fluent-repeat
Nov 3, 2020
Merged

Update Repeat to Fluent API#1524
mergify[bot] merged 3 commits intoplaidml-v1from
tzerrell-fluent-repeat

Conversation

@tzerrell
Copy link
Copy Markdown
Contributor

@tzerrell tzerrell commented Nov 2, 2020

Upgrade the API for repeat to enable the use of the new TensorDim repeats parameter, which I overlooked in #1518.

plaidml/op/op.h Outdated
public:
explicit repeat(const edsl::Tensor& I) : I_(I) {}

repeat& repeats(int repeats) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe call this count to avoid confusion?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure. The repeats matches numpy, but I agree that count is a less confusing name, so I made the switch.

@mergify mergify bot merged commit fb1b2a5 into plaidml-v1 Nov 3, 2020
@mergify mergify bot deleted the tzerrell-fluent-repeat branch November 3, 2020 03:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants