Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Missed a bit in the refactor.
  • Loading branch information
Craigacp committed Feb 5, 2022
commit ad9172c68b556b3aad206cde72cd12caf6c2fdc5
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public List<SessionFunction> functions() {
* @return list of output tensors, mapped by the signature name
* @throws IllegalArgumentException if no function can be selected by default
*/
public Map<String, Tensor> call(Map<String, Tensor> arguments) {
public Result call(Map<String, Tensor> arguments) {
SessionFunction function = null;
if (functions.size() == 1) {
function = functions.values().iterator().next();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public void exportFunctionWithVariables() throws IOException {
// Now call the same function directly from the model
try (TFloat32 zTensor =
(TFloat32)
savedModel.call(Collections.singletonMap("input", xTensor)).get("reducedSum")) {
savedModel.call(Collections.singletonMap("input", xTensor)).get("reducedSum").get()) {
assertEquals(reducedSum, zTensor.getFloat(), EPSILON);
}
}
Expand Down