Iaroslav Postovalov
Iaroslav Postovalov
No, my mistake in mentioning it.
Blocked by https://github.com/pytorch/pytorch/issues/50734
Well, now there is some documentation on the TorchScript format: https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/docs/serialization.md
cc @altavir @Shimuuar @pusolito @green-nick @pedroteixeira from #75
Prototype: https://github.com/mipt-npm/kmath/blob/commandertvis/units-poc/kmath-units/src/commonMain/kotlin/space/kscience/kmath/units/units.kt
I think the main problem is that N\*m ≠ m*N etc.
I mean units are not simplified to a certain comparable form
However, it is not such hard to implement such an algorithm - it is much easier than simplify a plain expression.
I've reworked the prototype without MST - units are stored as a product of base units. ```kotlin import space.kscience.kmath.operations.RealField import space.kscience.kmath.units.* public fun main() { var res = with(MeasurementExtendedField(RealField)) {...