forked from microsoft/CNTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added several internal API header files
In case other projects may use these header files, we added them into API/Internals. * ComputationGraphAlgorithms.h was moved from Source/ComputationNetworkLib * PrimitiveOpType.h and EvaluatorWrapper.h were moved from Source/CNTKv2Library * PrimitiveFunctionAttribute.h was extracted from PrimitiveFunction.h. It contains a new class PrimitiveFunctionAttribute which is the collection of all attribute names for PrimitiveFunction. This change actually had a subtle side-effect. We had a global static variable s_stateAttributes that depended on PrimitiveFunction::AttributeNameRngSeed and PrimitiveFunction::AttributeNameRngOffset. After we moved those static attribute-variables into another translation unit, s_stateAttributes can be initialized with empty wstring, because PrimitiveFunctionAttribute::AttributeNameRngSeed PrimitiveFunctionAttribute::AttributeNameRngSeedOffset were initialized after s_stateAttributes. Note that the initialization order of global static variables is not well-defined cross translation units. To fix the issue, we also moved s_stateAttributes into PrimitiveFunctionAttribute class, and renamed it to s_rngStateAttributes. I think it's reasonable to consider s_rngStateAttributes to be part of the PrimitiveFunctionAttribute class. * PrimitiveFunction.h was moved from Source/CNTKv2Library
- Loading branch information
1 parent
8a244e6
commit 3d809bf
Showing
26 changed files
with
898 additions
and
848 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.