Пример #1
0
#
from .core import *
from .variables import Parameter, Constant
from .ops import *
from .device import *
from .train import *
from .eval import *
from .learners import *
from .losses import *
from .metrics import *
from .initializer import *
from .default_options import *

from . import debugging
from . import logging
from . import io
from . import layers
from . import misc
from . import random

from .sample_installer import install_samples

DATATYPE = np.float32
InferredDimension = cntk_py.InferredDimension
FreeDimension = cntk_py.FreeDimension

from .internal.utils import _to_cntk_dict_value
import _cntk_py

cntk_py.Dictionary.__setitem__ = lambda self, key, value: _cntk_py.Dictionary___setitem__(
    self, key, _to_cntk_dict_value(value))
Пример #2
0
 def __setitem__(self, key, value):
     return _cntk_py.Dictionary___setitem__(self, key, value)