public NDArray build_results(BaseSession session, NDArray[] tensor_values) { var full_values = new List <object>(); if (_final_fetches.Count != tensor_values.Length) { throw new InvalidOperationException("_final_fetches mismatch tensor_values"); } int i = 0; int j = 0; foreach (var is_op in _ops) { if (is_op) { full_values.Add(null); } else { var value = tensor_values[j]; j += 1; full_values.Add(value); } i += 1; } if (j != tensor_values.Length) { throw new InvalidOperationException("j mismatch tensor_values"); } return(_fetch_mapper.build_results(full_values)); }
public NDArray build_results(Session session, NDArray[] tensor_values) { var full_values = new List <object>(); foreach (var is_op in _ops) { if (is_op) { full_values.Add(null); } } return(_fetch_mapper.build_results(full_values)); }
public NDArray build_results(Session session, NDArray[] results) { return(_fetch_mapper.build_results(results)); }
public object build_results(Session session, object[] results) { return(_fetch_mapper.build_results(results)); }