https://github.com/Microsoft/CNTK
Raw File
Tip revision: 457604043f559b25c32c2ed76d59159969cd2a3a authored by Frank Seide on 26 August 2016, 17:03:58 UTC
merged from master
Tip revision: 4576040
Variable.cpp
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//

#include "CNTKLibrary.h"

namespace CNTK
{
    /*static*/ const std::vector<Axis> Variable::s_defaultInputVariableDynamicAxes = { Axis::DefaultDynamicAxis(), Axis::DefaultBatchAxis() };

    Variable::Variable(const FunctionPtr& function)
        : Variable(function->Output())
    {
    }

    FunctionPtr Variable::Owner() const 
    {
        return m_dataFields->m_ownerFunction->shared_from_this(); 
    }
}
back to top