Skip to content

Commit

Permalink
Bug fix for GPU memory save mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongkaifu committed Feb 12, 2024
1 parent b6def4b commit 3ab4c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Seq2SeqSharp/Tools/ComputeGraphTensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public IWeightFactory GetWeightFactory()

public IComputeGraph CreateSubGraph(string name)
{
ComputeGraphTensor subGraph = new ComputeGraphTensor(m_weightTensorFactory, m_deviceId, m_needsBackprop, m_backprop, isSubGraph: true);
ComputeGraphTensor subGraph = new ComputeGraphTensor(m_weightTensorFactory, m_deviceId, m_needsBackprop, m_backprop, isSubGraph: true, saveGPUMemoryMode:m_saveGPUMemoryMode);
return subGraph;
}

Expand Down

0 comments on commit 3ab4c75

Please sign in to comment.