Skip to content

Commit 4380874

Browse files
committed
extend simple example a bit
1 parent 607c0e3 commit 4380874

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def get_file_datetime(filepath):
139139

140140
setup(
141141
name='PyTorch',
142-
version='2.8.1',
142+
version='2.8.2-SNAPSHOT',
143143
author='Hugh Perkins',
144144
author_email='hughperkins@gmail.com',
145145
description=(

simpleexample/luabit.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ function Luabit:getOut(inTensor, outSize, kernelSize)
2121
return out
2222
end
2323

24-
function Luabit:printTable(sometable)
24+
function Luabit:printTable(sometable, somestring, table2)
2525
for k, v in pairs(sometable) do
2626
print('Luabit:printTable ', k, v)
2727
end
28+
print('somestring', somestring)
29+
for k, v in pairs(table2) do
30+
print('Luabit table2 ', k, v)
31+
end
2832
end
2933

simpleexample/pybit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
outTensor = luaout.asNumpyTensor()
2424
print('outTensor', outTensor)
2525

26-
luabit.printTable({'color': 'red', 'weather': 'sunny', 'anumber': 10, 'afloat': 1.234})
26+
luabit.printTable({'color': 'red', 'weather': 'sunny', 'anumber': 10, 'afloat': 1.234}, 'mistletoe', {
27+
'row1': 'col1', 'meta': 'data'})
2728

0 commit comments

Comments
 (0)