We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a2995 commit 5a970e4Copy full SHA for 5a970e4
encoderfile-core/src/transforms/engine/mod.rs
@@ -88,6 +88,15 @@ fn new_lua() -> Result<Lua, ApiError> {
88
ApiError::InternalError("Failed to create new Lua engine")
89
})?;
90
91
+ lua.register_userdata_type::<Tensor>(|_| {})
92
+ .map_err(|e| {
93
+ tracing::error!(
94
+ "Failed to register Tensor as a UserType. This should not happen. More details: {:?}",
95
+ e
96
+ );
97
+ ApiError::InternalError("Failed to create new Lua engine")
98
+ })?;
99
+
100
let globals = lua.globals();
101
globals
102
.set(
0 commit comments