Skip to content

Bool mask indexing #456

@x66ccff

Description

@x66ccff

I want to implement an operation like this pytorch code

https://github.com/intell-sci-comput/PTS/blob/07088bda3e4c48fe8ac7eded9341855caa02b545/model/models.py#L46-L48

Note: the dr_mask here is a constant bool mask

This is super fast in pytorch, but i can not figure out why Reactant.jl / Julia can not do this.

I know this is not a problem unique to Reactant.jl, but I would like to know what the solution is on Julia. I'm just getting started with Julia. Many thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions