Skip to content

Commit 22c0776

Browse files
committed
NN XOR: download meta only if ImportGraph==true
1 parent c0ee6cb commit 22c0776

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎test/TensorFlowNET.Examples/NeuralNetXor.cs‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,12 @@ public void PrepareData()
145145
{0, 1 }
146146
};
147147

148-
// download graph meta data
149-
string url = "https://raw.githubusercontent.com/SciSharp/TensorFlow.NET/master/graph/xor.meta";
150-
Web.Download(url, "graph", "xor.meta");
148+
if (ImportGraph)
149+
{
150+
// download graph meta data
151+
string url = "https://raw.githubusercontent.com/SciSharp/TensorFlow.NET/master/graph/xor.meta";
152+
Web.Download(url, "graph", "xor.meta");
153+
}
151154
}
152155
}
153156
}

0 commit comments

Comments
 (0)