Skip to content

Commit

Permalink
Merge pull request #82 from zsogitbe/master
Browse files Browse the repository at this point in the history
A few corrections
  • Loading branch information
zhongkaifu authored Nov 21, 2023
2 parents 27e2109 + a2f0ec1 commit 1bacdcf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Seq2SeqSharp/Corpus/ParallelCorpus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public IEnumerator<T> GetEnumerator()

if (batchIdx % 10000 == 0)
{
Logger.WriteLine($"Processing batch '{batchIdx}'");
Logger.WriteLine(Logger.Level.debug, $"Processing batch '{batchIdx}'");
}


Expand Down
2 changes: 1 addition & 1 deletion TensorSharp.CUDA/RuntimeCompiler/CudaCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private byte[] DoCompile(string fullSource)
}
else
{
Logger.WriteLine($"Compiler Options: {string.Join(" ", m_options)}");
Logger.WriteLine(Logger.Level.debug, $"Compiler Options: {string.Join(" ", m_options)}");
rtc.Compile(m_options);
//rtc.Compile(new string[] { "--use_fast_math", "--gpu-architecture=compute_60" });
}
Expand Down
2 changes: 1 addition & 1 deletion Tools/SeqLabelConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static void Main(string[] args)
Logger.WriteLine($"Evaluate model '{opts.ModelFilePath}' by valid corpus '{opts.ValidCorpusPaths}'");

// Load valid corpus
SeqLabelingCorpus validCorpus = new SeqLabelingCorpus(opts.ValidCorpusPaths, opts.MaxTokenSizePerBatch, opts.MaxSentLength, shuffleEnums: opts.ShuffleType);
SeqLabelingCorpus validCorpus = new SeqLabelingCorpus(opts.ValidCorpusPaths, opts.ValMaxTokenSizePerBatch, opts.MaxSentLength, shuffleEnums: opts.ShuffleType);
(Vocab srcVocab, Vocab tgtVocab) = validCorpus.BuildVocabs();

// Create metrics
Expand Down

0 comments on commit 1bacdcf

Please sign in to comment.