You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ea978bb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/TensorFlowNET.Core/NumPy/Pickle/MultiArrayConstructor.cs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
usingRazorvine.Pickle;
6
6
usingRazorvine.Pickle.Objects;
7
7
8
-
namespaceTensorflow.NumPy
8
+
namespaceTensorflow.NumPy.Pickle
9
9
{
10
10
/// <summary>
11
11
/// Creates multiarrays of objects. Returns a primitive type multiarray such as int[][] if
@@ -18,14 +18,14 @@ public class MultiArrayConstructor : IObjectConstructor
18
18
{
19
19
publicobjectconstruct(object[]args)
20
20
{
21
-
if(args.Length!=3)
21
+
if(args.Length!=3)
22
22
thrownewInvalidArgumentError($"Invalid number of arguments in MultiArrayConstructor._reconstruct. Expected three arguments. Given {args.Length} arguments.");
23
-
23
+
24
24
vartypes=(ClassDictConstructor)args[0];
25
-
if(types.module!="numpy"||types.name!="ndarray")
25
+
if(types.module!="numpy"||types.name!="ndarray")
26
26
thrownewRuntimeError("_reconstruct: First argument must be a sub-type of ndarray");
27
-
28
-
vararg1=(Object[])args[1];
27
+
28
+
vararg1=(object[])args[1];
29
29
vardims=newint[arg1.Length];
30
30
for(vari=0;i<arg1.Length;i++)
31
31
{
@@ -47,7 +47,7 @@ public object construct(object[] args)
47
47
case"b":dtype=np.@bool;break;
48
48
default:thrownewNotImplementedException($"Unsupported data type: {args[2]}");
0 commit comments