3 ms·
Sorry, but can someone explain the usecase for callAsFunction? I have seen something similar before in Python where a class implements __call__, but I have nev
by Cyph0n 7y ago
Sorry, but can someone explain the usecase for callAsFunction?
I have seen something similar before in Python where a class implements __call__, but I have never needed to use it.
- lazyvar 7y agoYou hit the nail on the head. `callAsFunction` was introduced for Swift in order to interop with Python for the TensorFlow project.