Tfjs: Missing op: MatrixBandPart

Created on 4 Sep 2019  路  7Comments  路  Source: tensorflow/tfjs

core good first issue

Most helpful comment

Okay, will do as soon as I can.

All 7 comments

Is this issue taken?
If not I can get an implementation ready by tomorrow hopefully!

@Kriyszig Fantastic! It's all yours :)

PR#1520 from January already implemented tf.linalg.bandPart. It is purely based on existing tfjs operations and, according to some quick and dirty benchmarks, it is around 10 times slower than a backend-based implementation, which should be acceptable for an O(m*n) operation. I've taken the liberty to add PR#2155 to the benchmark here. PR#2155 currently seems to have some performance issues caused by the way that concat is used.

@DirkToewe, Can you port PR#1520 to this monorepo? Your implementation scales really well unlike mine.

Okay, will do as soon as I can.

Done! You can find the PR here. @Kriyszig Your PR had better documentation and more tests so I've based my PR on it. If that's okay with You, You just need to to give Your consent in the PR.

Seems like this can be closed now, thanks to #2226?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

weiji14 picture weiji14  路  3Comments

dhrumil83 picture dhrumil83  路  3Comments

ritikrishu picture ritikrishu  路  4Comments

Josef-Haupt picture Josef-Haupt  路  3Comments

RELNO picture RELNO  路  3Comments