-
Notifications
You must be signed in to change notification settings - Fork 137
Solving errors in AvgPool3d and Maxpool3d Implementations #119
Conversation
@jekbradbury @dan-zheng you mentioned in these comments about how maxPooled should probably be changed to a more abstract implementation. This compilation does throw an error because maxPooled is defined in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing the errors!
Good catch! I wouldn't worry about those comments for now, actually. Eventually, we should probably change APIs liked It would be good to implement that in a separate dedicated patch. |
@dan-zheng, swift build still throws this error :
and I think we might have to create some sort of fix in this patch itself. I'm still wrapping my head around the error, but it makes sense since the vjp is written for |
Aha, I see. The current
Would you like to take this on? 🙂 |
@dan-zheng I will try, hope you help in debugging if i have doubts xD |
@dan-zheng can you please review? sorry for the delay! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The VJPs for averagePooled2D/3D
and maxPooled2D/3D
look good!
You also need to rename averagePooled
and maxPooled
to averagePooled2D
and maxPooled2D
and add averagePooled3D
and maxPooled3D
in the same file (Operators.swift
). I don't believe the code currently compiles - could you please compile locally before committing code, to make sure it works?
Let us know if you have questions!
@dan-zheng i'm just getting this final error in the build, i don't know what to make of it. |
I'll take a look today Pawan. Thanks for your patience! |
@dan-zheng is there any sort of rough roadmap for swift-apis i could look at? |
An ongoing plan is to finish #54, and the list of layers you provided there is great to follow! API folks on the Swift for TensorFlow team (including @dan-zheng and myself) have been recently working on language/compiler enhancements (e.g. automatic differentiation). Once we finish the AD control flow work by the end of May, we'll be able to simplify this library by dropping most custom VJPs. Meanwhile, @eaplatanios and @pschuh are driving #109, which is moving all tensor APIs from apple/swift into this repository. When that's finished, we will be able to iterate faster and improve the tensor library along with layers/optimizers that depend on them. |
Minor formatting fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you Pawan!
the error inherently is :
I'm still working on how to solve it, Any suggestions are welcome :).