https://github.com/Microsoft/CNTK
Raw File
Tip revision: 59d382f2ea108e26321618ad42cef65cdcc570da authored by Mark Hillebrand on 18 January 2016, 08:31:47 UTC
License change
Tip revision: 59d382f
BrainScriptEvaluator.h
// BrainScriptEvaluator.h -- execute what's given in a config file

#pragma once

#include "Basics.h"
#include "ScriptableObjects.h"
#include "BrainScriptParser.h"

#include <memory>   // for shared_ptr

namespace Microsoft { namespace MSR { namespace BS {

    using namespace std;
    using namespace Microsoft::MSR::ScriptableObjects;

    // -----------------------------------------------------------------------
    // functions exposed by this module
    // TODO: This is the only thing that should stay in an actual BrainScriptEvaluator.h.
    // -----------------------------------------------------------------------

    // understand and execute from the syntactic expression tree
    ConfigValuePtr Evaluate(ExpressionPtr);     // evaluate the expression tree
    void Do(ExpressionPtr e);                   // evaluate e.do
    shared_ptr<Object> EvaluateField(ExpressionPtr e, const wstring & id);  // for experimental CNTK integration

    // some simple tests
    void SomeTests();

}}} // end namespaces
back to top