Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions extension/apple/ExecuTorch/Exported/ExecuTorch+Module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public extension Module {
/// - Returns: An array of `Value` objects representing the outputs.
/// - Throws: An error if method execution fails.
func execute(_ method: String, _ inputs: [ValueConvertible]) throws -> [Value] {
try __executeMethod(method, withInputs: inputs.map { $0.objcValue() } )
try __executeMethod(method, withInputs: inputs.map { $0.asValue() } )
}

/// Executes a specific method with a single input value.
Expand All @@ -72,7 +72,7 @@ public extension Module {
/// - Returns: An array of `Value` objects representing the outputs.
/// - Throws: An error if method execution fails.
func execute(_ method: String, _ input: ValueConvertible) throws -> [Value] {
try __executeMethod(method, withInputs: [input.objcValue()])
try __executeMethod(method, withInputs: [input.asValue()])
}

/// Executes the "forward" method with the provided input values.
Expand All @@ -82,7 +82,7 @@ public extension Module {
/// - Returns: An array of `Value` objects representing the outputs.
/// - Throws: An error if method execution fails.
func forward(_ inputs: [ValueConvertible]) throws -> [Value] {
try __executeMethod("forward", withInputs: inputs.map { $0.objcValue() })
try __executeMethod("forward", withInputs: inputs.map { $0.asValue() })
}

/// Executes the "forward" method with a single input value.
Expand All @@ -92,6 +92,6 @@ public extension Module {
/// - Returns: An array of `Value` objects representing the outputs.
/// - Throws: An error if method execution fails.
func forward(_ input: ValueConvertible) throws -> [Value] {
try __executeMethod("forward", withInputs: [input.objcValue()])
try __executeMethod("forward", withInputs: [input.asValue()])
}
}
Loading
Loading