Skip to content

Commit

Permalink
using TextLoader.Create instead of env.CreateLoader (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
abgoswam authored and Ivanidzo4ka committed Sep 25, 2018
1 parent 893a385 commit 330aa41
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,14 @@ public void TensorFlowTransformCifarSavedModel()
var imageWidth = 32;
var dataFile = GetDataPath("images/images.tsv");
var imageFolder = Path.GetDirectoryName(dataFile);
var data = env.CreateLoader("Text{col=ImagePath:TX:0 col=Name:TX:1}", new MultiFileSource(dataFile));
var data = TextLoader.Create(env, new TextLoader.Arguments()
{
Column = new[]
{
new TextLoader.Column("ImagePath", DataKind.TX, 0),
new TextLoader.Column("Name", DataKind.TX, 1),
}
}, new MultiFileSource(dataFile));
var images = ImageLoaderTransform.Create(env, new ImageLoaderTransform.Arguments()
{
Column = new ImageLoaderTransform.Column[1]
Expand Down

0 comments on commit 330aa41

Please sign in to comment.