Python InterOp - Tuples in API calls - Pytorch example #1220
-
Hi, first of all: I am a huge fan of having a lispy language hosted on Python with access to all libraries - FANTASTIC!!! I have a little issue: I don't know how to express an int tuple as an argument in a Python API call Please help ... EXAMPLE: (import torch) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
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). |
Beta Was this translation helpful? Give feedback.
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:
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).