Skip to content

Commit f8d6689

Browse files
Fix input setting and invocation. (#5888)
Fix input setting and invocation. (#5752) Summary: Pull Request resolved: #5752 . Reviewed By: kirklandsign Differential Revision: D63640035 fbshipit-source-id: 47b5952d3e77cbe65751c81af55960001a9552fd (cherry picked from commit 68548e5) Co-authored-by: Anthony Shoumikhin <[email protected]>
1 parent 4adf496 commit f8d6689

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extension/apple/Benchmark/Tests/Tests.mm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ + (void)initialize {
9898
const auto sizes = tensor_meta->sizes();
9999
tensors.emplace_back(ones({sizes.begin(), sizes.end()},
100100
tensor_meta->scalar_type()));
101-
inputs.emplace_back(tensors.back());
101+
XCTAssertEqual(module->set_input(tensors.back(), index),
102+
Error::Ok);
102103
} break;
103104
default:
104105
XCTFail("Unsupported tag %i at input %d", *input_tag, index);
@@ -110,7 +111,7 @@ + (void)initialize {
110111
]
111112
options:XCTMeasureOptions.defaultOptions
112113
block:^{
113-
XCTAssertEqual(module->forward(inputs).error(),
114+
XCTAssertEqual(module->forward().error(),
114115
Error::Ok);
115116
}];
116117
});

0 commit comments

Comments
 (0)