Improve transform.project op to compute default output
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 94
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
When using the `transform.project` op, it's a common pattern to first create an output with a subset of the dimensions of the input, then projecting along the remaining dimension, e.g. for an input with 3 dimensions:
```groovy
#@ Dataset input
#@ OpService ops
result = ops.run("create.img", [input.dimension(0), input.dimension(1)])
sumOp = ops.op("sum", input)
ops.run("project", result, input, sumOp, 2)
```
It would be great to have the `project` op generate its own output if none is provided (i.e. act as a `Function`), so that calling the op gets as easy as:
```groovy
result = ops.run("project", input, sumOp, dim)
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the `transform.project` op entry point and inspect how it currently receives and uses the output dataset. Determine how the omitted-output call should derive its dimensions from the input and projection dimension. Done means the op supports both the existing explicit-output form and the requested call that returns a computed result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- computer-vision
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100