symforce
symforce copied to clipboard
codegen.Codegen accepts constants in input
The Codegen constructor is happy to make a codegen object out of constants
co = codegen.Codegen(
inputs=Values(a=geo.Rot3.from_storage([1, 2, 3, 4])),
outputs=Values(out=geo.Rot3.from_storage([1, 2, 3, 4])),
config=codegen.CppConfig(),
name="test",
)
This is probably not behavior we want.