Fix string.Join method to work on Unity 2017.4

This commit is contained in:
Koki Ibukuro 2020-02-07 13:13:09 +01:00
parent 1bd27689ed
commit 9a7508c9f9

View File

@ -14,6 +14,7 @@ limitations under the License.
==============================================================================*/
using System;
using System.Runtime.InteropServices;
using System.Linq;
using TfLiteInterpreter = System.IntPtr;
using TfLiteInterpreterOptions = System.IntPtr;
@ -48,7 +49,7 @@ namespace TensorFlowLite
return string.Format("name: {0}, type: {1}, dimensions: {2}, quantizationParams: {3}",
name,
type,
"[" + string.Join(",", dimensions) + "]",
"[" + string.Join(",", dimensions.Select(d => d.ToString()).ToArray()) + "]",
"{" + quantizationParams + "}");
}
}