Skip to content

Python InterOp - Tuples in API calls - Pytorch example #1220

Answered by chrisrink10
diro5t asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @diro5t it's great to hear you like Basilisp. In the future for questions, can you use the discussions section rather than filing an issue?

As to your request, Basilisp has built in data readers for Python primitive types:

#py (2 2)

I am not familiar with the particulars of Pytorch, so I do not know why certain calls are failing. I'm guessing this has to do with how the Python API is defined (e.g. supporting variadic arguments versus expecting a tuple argument directly).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@diro5t
Comment options

Answer selected by chrisrink10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1219 on March 28, 2025 20:37.