Module: CNTK

Defined in:
lib/cntk.rb,
lib/cntk/io.rb,
lib/cntk/ops.rb,
lib/cntk/axis.rb,
lib/cntk/value.rb,
lib/cntk/layers.rb,
lib/cntk/ndmask.rb,
lib/cntk/inspect.rb,
lib/cntk/learner.rb,
lib/cntk/ndshape.rb,
lib/cntk/trainer.rb,
lib/cntk/function.rb,
lib/cntk/variable.rb,
lib/cntk/dictionary.rb,
lib/cntk/initializer.rb,
lib/cntk/ndarrayview.rb,
ext/cntk/cntk_wrap.cxx

Defined Under Namespace

Modules: Initializer, InspectUtil, Layers, Ops, VariableExtend Classes: AdditionalLearningOptions, Axis, BackPropState, ConstIterator, Constant, DeviceDescriptor, Dictionary, DictionaryValue, DistributedCommunicator, DistributedLearner, DistributedWorkerDescriptor, Function, GC_VALUE, Iterator, Learner, MinibatchData, MinibatchInfo, MinibatchSource, MinibatchTable, MomentumAsTimeConstantSchedule, MomentumSchedule, NDArrayView, NDMask, NDShape, Parameter, QuantizedDistributedCommunicator, StdUMapStreamInfoMinibatchData, StdUMapVariableValue, StdUSetDistributedWorkerDescriptor, StdUSetVariable, StdVectorDictionaryValue, StdVectorPairVariableVariable, StreamInformation, Trainer, TrainingParameterPerMinibatchSchedule, TrainingParameterPerSampleSchedule, TrainingSession, Value, Variable

Constant Summary collapse

SHARED_PTR_DISOWN =
SWIG_From_int(static_cast< int >(0))
DataType_Unknown =
SWIG_From_int(static_cast< int >(CNTK::DataType::Unknown))
DataType_Float =
SWIG_From_int(static_cast< int >(CNTK::DataType::Float))
DataType_Double =
SWIG_From_int(static_cast< int >(CNTK::DataType::Double))
StorageFormat_Dense =
SWIG_From_int(static_cast< int >(CNTK::StorageFormat::Dense))
StorageFormat_SparseCSC =
SWIG_From_int(static_cast< int >(CNTK::StorageFormat::SparseCSC))
StorageFormat_SparseBlockCol =
SWIG_From_int(static_cast< int >(CNTK::StorageFormat::SparseBlockCol))
DeviceKind_CPU =
SWIG_From_int(static_cast< int >(CNTK::DeviceKind::CPU))
DeviceKind_GPU =
SWIG_From_int(static_cast< int >(CNTK::DeviceKind::GPU))
MaskKind_Invalid =
SWIG_From_int(static_cast< int >(CNTK::MaskKind::Invalid))
MaskKind_Valid =
SWIG_From_int(static_cast< int >(CNTK::MaskKind::Valid))
MaskKind_SequenceBegin =
SWIG_From_int(static_cast< int >(CNTK::MaskKind::SequenceBegin))
VariableKind_Input =
SWIG_From_int(static_cast< int >(CNTK::VariableKind::Input))
VariableKind_Output =
SWIG_From_int(static_cast< int >(CNTK::VariableKind::Output))
VariableKind_Parameter =
SWIG_From_int(static_cast< int >(CNTK::VariableKind::Parameter))
VariableKind_Constant =
SWIG_From_int(static_cast< int >(CNTK::VariableKind::Constant))
VariableKind_Placeholder =
SWIG_From_int(static_cast< int >(CNTK::VariableKind::Placeholder))
ParameterCloningMethod_Share =
SWIG_From_int(static_cast< int >(CNTK::ParameterCloningMethod::Share))
ParameterCloningMethod_Clone =
SWIG_From_int(static_cast< int >(CNTK::ParameterCloningMethod::Clone))
ParameterCloningMethod_Freeze =
SWIG_From_int(static_cast< int >(CNTK::ParameterCloningMethod::Freeze))
PoolingType_Max =
SWIG_From_int(static_cast< int >(CNTK::PoolingType::Max))
PoolingType_Average =
SWIG_From_int(static_cast< int >(CNTK::PoolingType::Average))

Class Method Summary collapse

Class Method Details

.__adam_learner__(*args, self) ⇒ Object



57208
57209
57210
57211
57212
57213
57214
57215
57216
57217
57218
57219
57220
57221
57222
57223
57224
57225
57226
57227
57228
57229
57230
57231
57232
57233
57234
57235
57236
57237
57238
57239
57240
57241
57242
57243
57244
57245
57246
57247
57248
57249
57250
57251
57252
57253
57254
57255
57256
57257
57258
57259
57260
57261
57262
57263
57264
57265
57266
57267
57268
57269
57270
57271
57272
57273
57274
57275
57276
57277
57278
57279
57280
57281
57282
57283
57284
57285
57286
57287
57288
57289
57290
57291
57292
57293
57294
57295
57296
57297
57298
57299
57300
57301
57302
57303
57304
57305
57306
57307
57308
57309
57310
57311
57312
57313
57314
57315
57316
57317
57318
57319
57320
57321
57322
57323
57324
57325
57326
57327
57328
57329
57330
57331
57332
# File 'ext/cntk/cntk_wrap.cxx', line 57208

SWIGINTERN VALUE _wrap___adam_learner__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[6];
  int ii;
  
  argc = nargs;
  if (argc > 6) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___adam_learner____SWIG_3(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___adam_learner____SWIG_2(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___adam_learner____SWIG_1(nargs, args, self);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              void *vptr = 0;
              int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CNTK__AdditionalLearningOptions, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap___adam_learner____SWIG_0(nargs, args, self);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "__adam_learner__", 
    "    CNTK::LearnerPtr __adam_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule, bool unitGain, CNTK::MomentumSchedule const &varianceMomentumSchedule, CNTK::AdditionalLearningOptions additionalOptions)\n"
    "    CNTK::LearnerPtr __adam_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule, bool unitGain, CNTK::MomentumSchedule const &varianceMomentumSchedule)\n"
    "    CNTK::LearnerPtr __adam_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule, bool unitGain)\n"
    "    CNTK::LearnerPtr __adam_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule)\n");
  
  return Qnil;
}

.__alias__(*args, self) ⇒ Object



52036
52037
52038
52039
52040
52041
52042
52043
52044
52045
52046
52047
52048
52049
52050
52051
52052
52053
52054
52055
52056
52057
52058
52059
52060
52061
52062
52063
52064
52065
52066
52067
52068
52069
52070
52071
52072
52073
52074
52075
# File 'ext/cntk/cntk_wrap.cxx', line 52036

SWIGINTERN VALUE _wrap___alias__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___alias____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___alias____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__alias__", 
    "    CNTK::FunctionPtr __alias__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __alias__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__as_block__(*args, self) ⇒ Object



52245
52246
52247
52248
52249
52250
52251
52252
52253
52254
52255
52256
52257
52258
52259
52260
52261
52262
52263
52264
52265
52266
52267
52268
52269
52270
52271
52272
52273
52274
52275
52276
52277
52278
52279
52280
52281
52282
52283
52284
52285
52286
52287
52288
52289
52290
52291
52292
52293
52294
52295
52296
52297
52298
52299
52300
# File 'ext/cntk/cntk_wrap.cxx', line 52245

SWIGINTERN VALUE _wrap___as_block__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< std::pair< CNTK::Variable,CNTK::Variable >,std::allocator< std::pair< CNTK::Variable,CNTK::Variable > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___as_block____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< std::pair< CNTK::Variable,CNTK::Variable >,std::allocator< std::pair< CNTK::Variable,CNTK::Variable > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___as_block____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__as_block__", 
    "    CNTK::FunctionPtr __as_block__(CNTK::FunctionPtr &&composite, std::vector< std::pair< CNTK::Variable,CNTK::Variable >,std::allocator< std::pair< CNTK::Variable,CNTK::Variable > > > const &argumentsMap, std::wstring const &blockOpName, std::wstring const &blockName)\n"
    "    CNTK::FunctionPtr __as_block__(CNTK::FunctionPtr &&composite, std::vector< std::pair< CNTK::Variable,CNTK::Variable >,std::allocator< std::pair< CNTK::Variable,CNTK::Variable > > > const &argumentsMap, std::wstring const &blockOpName)\n");
  
  return Qnil;
}

.__batch_normalization__(*args, self) ⇒ Object



50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302
50303
50304
50305
50306
50307
50308
50309
50310
50311
50312
50313
50314
50315
50316
50317
50318
50319
50320
50321
50322
50323
50324
50325
50326
50327
50328
50329
50330
50331
50332
50333
50334
50335
50336
50337
50338
50339
50340
50341
50342
50343
50344
50345
50346
50347
50348
50349
50350
50351
50352
50353
50354
50355
50356
50357
50358
50359
50360
50361
50362
50363
50364
50365
50366
50367
50368
50369
50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
50381
50382
50383
50384
50385
50386
50387
50388
50389
50390
50391
50392
50393
50394
50395
50396
50397
50398
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408
50409
50410
50411
50412
50413
50414
50415
50416
50417
50418
50419
50420
50421
50422
50423
50424
50425
50426
50427
50428
50429
50430
50431
50432
50433
50434
50435
50436
50437
50438
50439
50440
50441
50442
50443
50444
50445
50446
50447
50448
50449
50450
50451
50452
50453
50454
50455
50456
50457
50458
50459
50460
50461
50462
50463
50464
50465
50466
50467
50468
50469
50470
50471
50472
50473
50474
50475
50476
50477
50478
50479
50480
50481
50482
50483
50484
50485
50486
50487
50488
50489
50490
50491
50492
50493
50494
50495
50496
50497
50498
50499
50500
50501
50502
50503
50504
50505
50506
50507
50508
50509
50510
50511
50512
50513
50514
50515
50516
50517
50518
50519
50520
50521
50522
50523
50524
50525
50526
50527
50528
50529
50530
50531
50532
50533
50534
50535
50536
50537
50538
50539
50540
50541
50542
50543
50544
50545
50546
50547
50548
50549
50550
50551
50552
50553
50554
50555
50556
50557
50558
50559
50560
50561
50562
50563
50564
50565
50566
50567
50568
50569
50570
50571
50572
50573
50574
50575
50576
50577
50578
50579
50580
50581
50582
50583
50584
50585
50586
50587
50588
50589
50590
50591
50592
50593
50594
50595
50596
50597
50598
50599
50600
50601
50602
50603
50604
50605
50606
50607
50608
50609
50610
50611
50612
50613
50614
50615
50616
50617
50618
50619
50620
50621
50622
50623
50624
50625
50626
50627
50628
50629
50630
50631
50632
50633
50634
50635
50636
50637
50638
50639
50640
50641
# File 'ext/cntk/cntk_wrap.cxx', line 50292

SWIGINTERN VALUE _wrap___batch_normalization__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[12];
  int ii;
  
  argc = nargs;
  if (argc > 12) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              void *vptr = 0;
              int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap___batch_normalization____SWIG_5(nargs, args, self);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              void *vptr = 0;
              int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap___batch_normalization____SWIG_4(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              void *vptr = 0;
              int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap___batch_normalization____SWIG_3(nargs, args, self);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              void *vptr = 0;
              int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap___batch_normalization____SWIG_2(nargs, args, self);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              void *vptr = 0;
              int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap___batch_normalization____SWIG_1(nargs, args, self);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              void *vptr = 0;
              int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = SWIG_AsPtr_std_wstring(argv[11], (std::wstring**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            return _wrap___batch_normalization____SWIG_0(nargs, args, self);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 12, "__batch_normalization__", 
    "    CNTK::FunctionPtr __batch_normalization__(CNTK::Variable const &operand, CNTK::Variable const &scale, CNTK::Variable const &bias, CNTK::Variable const &runningMean, CNTK::Variable const &runningInvStd, CNTK::Variable const &runningSampleCount, bool spatial, double normalizationTimeConstant, double blendTimeConstant, double epsilon, bool useCuDNNEngine, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __batch_normalization__(CNTK::Variable const &operand, CNTK::Variable const &scale, CNTK::Variable const &bias, CNTK::Variable const &runningMean, CNTK::Variable const &runningInvStd, CNTK::Variable const &runningSampleCount, bool spatial, double normalizationTimeConstant, double blendTimeConstant, double epsilon, bool useCuDNNEngine)\n"
    "    CNTK::FunctionPtr __batch_normalization__(CNTK::Variable const &operand, CNTK::Variable const &scale, CNTK::Variable const &bias, CNTK::Variable const &runningMean, CNTK::Variable const &runningInvStd, CNTK::Variable const &runningSampleCount, bool spatial, double normalizationTimeConstant, double blendTimeConstant, double epsilon)\n"
    "    CNTK::FunctionPtr __batch_normalization__(CNTK::Variable const &operand, CNTK::Variable const &scale, CNTK::Variable const &bias, CNTK::Variable const &runningMean, CNTK::Variable const &runningInvStd, CNTK::Variable const &runningSampleCount, bool spatial, double normalizationTimeConstant, double blendTimeConstant)\n"
    "    CNTK::FunctionPtr __batch_normalization__(CNTK::Variable const &operand, CNTK::Variable const &scale, CNTK::Variable const &bias, CNTK::Variable const &runningMean, CNTK::Variable const &runningInvStd, CNTK::Variable const &runningSampleCount, bool spatial, double normalizationTimeConstant)\n"
    "    CNTK::FunctionPtr __batch_normalization__(CNTK::Variable const &operand, CNTK::Variable const &scale, CNTK::Variable const &bias, CNTK::Variable const &runningMean, CNTK::Variable const &runningInvStd, CNTK::Variable const &runningSampleCount, bool spatial)\n");
  
  return Qnil;
}

.__bilinear_initializer__(*args) ⇒ Object



27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
# File 'ext/cntk/cntk_wrap.cxx', line 27741

SWIGINTERN VALUE
_wrap___bilinear_initializer__(int argc, VALUE *argv, VALUE self) {
  size_t arg1 ;
  size_t arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  CNTK::Dictionary result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_size_t(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","CNTK::BilinearInitializer", 1, argv[0] ));
  } 
  arg1 = static_cast< size_t >(val1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","CNTK::BilinearInitializer", 2, argv[1] ));
  } 
  arg2 = static_cast< size_t >(val2);
  {
    try {
      result = CNTK::BilinearInitializer(arg1,arg2); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_NewPointerObj((new CNTK::Dictionary(static_cast< const CNTK::Dictionary& >(result))), SWIGTYPE_p_CNTK__Dictionary, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

.__binary_cross_entropy__(*args, self) ⇒ Object



41502
41503
41504
41505
41506
41507
41508
41509
41510
41511
41512
41513
41514
41515
41516
41517
41518
41519
41520
41521
41522
41523
41524
41525
41526
41527
41528
41529
41530
41531
41532
41533
41534
41535
41536
41537
41538
41539
41540
41541
41542
41543
41544
41545
41546
41547
41548
41549
41550
41551
# File 'ext/cntk/cntk_wrap.cxx', line 41502

SWIGINTERN VALUE _wrap___binary_cross_entropy__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___binary_cross_entropy____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___binary_cross_entropy____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__binary_cross_entropy__", 
    "    CNTK::FunctionPtr __binary_cross_entropy__(CNTK::Variable const &prediction, CNTK::Variable const &targets, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __binary_cross_entropy__(CNTK::Variable const &prediction, CNTK::Variable const &targets)\n");
  
  return Qnil;
}

.__broadcast_as__(*args, self) ⇒ Object



53539
53540
53541
53542
53543
53544
53545
53546
53547
53548
53549
53550
53551
53552
53553
53554
53555
53556
53557
53558
53559
53560
53561
53562
53563
53564
53565
53566
53567
53568
53569
53570
53571
53572
53573
53574
53575
53576
53577
53578
53579
53580
53581
53582
53583
53584
53585
53586
53587
53588
# File 'ext/cntk/cntk_wrap.cxx', line 53539

SWIGINTERN VALUE _wrap___broadcast_as__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___broadcast_as____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___broadcast_as____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__broadcast_as__", 
    "    CNTK::FunctionPtr __broadcast_as__(CNTK::Variable const &operand, CNTK::Variable const &broadcastAs, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __broadcast_as__(CNTK::Variable const &operand, CNTK::Variable const &broadcastAs)\n");
  
  return Qnil;
}

.__ceil__(*args, self) ⇒ Object



36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
# File 'ext/cntk/cntk_wrap.cxx', line 36230

SWIGINTERN VALUE _wrap___ceil__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___ceil____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___ceil____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__ceil__", 
    "    CNTK::FunctionPtr __ceil__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __ceil__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__classification_error__(*args, self) ⇒ Object



43102
43103
43104
43105
43106
43107
43108
43109
43110
43111
43112
43113
43114
43115
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
43146
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157
43158
43159
43160
43161
43162
43163
43164
43165
43166
43167
43168
43169
43170
43171
43172
43173
43174
43175
43176
43177
43178
43179
43180
43181
43182
43183
43184
43185
43186
43187
43188
43189
43190
43191
43192
43193
43194
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205
43206
43207
43208
43209
43210
43211
43212
43213
43214
43215
43216
43217
43218
43219
43220
43221
43222
43223
43224
43225
43226
43227
43228
43229
43230
43231
43232
43233
43234
43235
43236
43237
43238
43239
43240
43241
43242
43243
43244
43245
43246
43247
43248
43249
43250
43251
# File 'ext/cntk/cntk_wrap.cxx', line 43102

SWIGINTERN VALUE _wrap___classification_error__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs;
  if (argc > 5) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___classification_error____SWIG_5(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___classification_error____SWIG_3(nargs, args, self);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___classification_error____SWIG_4(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___classification_error____SWIG_2(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___classification_error____SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_AsPtr_std_wstring(argv[4], (std::wstring**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___classification_error____SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "__classification_error__", 
    "    CNTK::FunctionPtr __classification_error__(CNTK::Variable const &prediction, CNTK::Variable const &labels, size_t topN, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __classification_error__(CNTK::Variable const &prediction, CNTK::Variable const &labels, size_t topN, CNTK::Axis const &axis)\n"
    "    CNTK::FunctionPtr __classification_error__(CNTK::Variable const &prediction, CNTK::Variable const &labels, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __classification_error__(CNTK::Variable const &prediction, CNTK::Variable const &labels, CNTK::Axis const &axis)\n"
    "    CNTK::FunctionPtr __classification_error__(CNTK::Variable const &prediction, CNTK::Variable const &labels, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __classification_error__(CNTK::Variable const &prediction, CNTK::Variable const &labels)\n");
  
  return Qnil;
}

.__clip__(*args, self) ⇒ Object



51312
51313
51314
51315
51316
51317
51318
51319
51320
51321
51322
51323
51324
51325
51326
51327
51328
51329
51330
51331
51332
51333
51334
51335
51336
51337
51338
51339
51340
51341
51342
51343
51344
51345
51346
51347
51348
51349
51350
51351
51352
51353
51354
51355
51356
51357
51358
51359
51360
51361
51362
51363
51364
51365
51366
51367
51368
51369
51370
51371
# File 'ext/cntk/cntk_wrap.cxx', line 51312

SWIGINTERN VALUE _wrap___clip__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___clip____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___clip____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__clip__", 
    "    CNTK::FunctionPtr __clip__(CNTK::Variable const &operand, CNTK::Variable const &min, CNTK::Variable const &max, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __clip__(CNTK::Variable const &operand, CNTK::Variable const &min, CNTK::Variable const &max)\n");
  
  return Qnil;
}

.__combine__(*args, self) ⇒ Object



51889
51890
51891
51892
51893
51894
51895
51896
51897
51898
51899
51900
51901
51902
51903
51904
51905
51906
51907
51908
51909
51910
51911
51912
51913
51914
51915
51916
51917
51918
51919
51920
51921
51922
51923
51924
51925
51926
# File 'ext/cntk/cntk_wrap.cxx', line 51889

SWIGINTERN VALUE _wrap___combine__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Variable,std::allocator< CNTK::Variable > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___combine____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Variable,std::allocator< CNTK::Variable > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___combine____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__combine__", 
    "    CNTK::FunctionPtr __combine__(std::vector< CNTK::Variable,std::allocator< CNTK::Variable > > const &operands, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __combine__(std::vector< CNTK::Variable,std::allocator< CNTK::Variable > > const &operands)\n");
  
  return Qnil;
}

.__compute_input_per_dim_means_and_inv_std_devs__(*args, self) ⇒ Object



68166
68167
68168
68169
68170
68171
68172
68173
68174
68175
68176
68177
68178
68179
68180
68181
68182
68183
68184
68185
68186
68187
68188
68189
68190
68191
68192
68193
68194
68195
68196
68197
68198
68199
68200
68201
68202
68203
68204
68205
68206
68207
68208
68209
68210
68211
68212
68213
68214
# File 'ext/cntk/cntk_wrap.cxx', line 68166

SWIGINTERN VALUE _wrap___compute_input_per_dim_means_and_inv_std_devs__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__StreamInformation_std__pairT_std__shared_ptrT_CNTK__NDArrayView_t_std__shared_ptrT_CNTK__NDArrayView_t_t_std__hashT_CNTK__StreamInformation_t_std__equal_toT_CNTK__StreamInformation_t_std__allocatorT_std__pairT_CNTK__StreamInformation_const_std__pairT_std__shared_ptrT_CNTK__NDArrayView_t_std__shared_ptrT_CNTK__NDArrayView_t_t_t_t_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___compute_input_per_dim_means_and_inv_std_devs____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__StreamInformation_std__pairT_std__shared_ptrT_CNTK__NDArrayView_t_std__shared_ptrT_CNTK__NDArrayView_t_t_std__hashT_CNTK__StreamInformation_t_std__equal_toT_CNTK__StreamInformation_t_std__allocatorT_std__pairT_CNTK__StreamInformation_const_std__pairT_std__shared_ptrT_CNTK__NDArrayView_t_std__shared_ptrT_CNTK__NDArrayView_t_t_t_t_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__DeviceDescriptor, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___compute_input_per_dim_means_and_inv_std_devs____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__compute_input_per_dim_means_and_inv_std_devs__", 
    "    void __compute_input_per_dim_means_and_inv_std_devs__(CNTK::MinibatchSourcePtr const &minibatchSource, std::unordered_map< CNTK::StreamInformation,std::pair< CNTK::NDArrayViewPtr,CNTK::NDArrayViewPtr >,std::hash< CNTK::StreamInformation >,std::equal_to< CNTK::StreamInformation >,std::allocator< std::pair< CNTK::StreamInformation const,std::pair< CNTK::NDArrayViewPtr,CNTK::NDArrayViewPtr > > > > &computedMeanAndVariances, CNTK::DeviceDescriptor const &device)\n"
    "    void __compute_input_per_dim_means_and_inv_std_devs__(CNTK::MinibatchSourcePtr const &minibatchSource, std::unordered_map< CNTK::StreamInformation,std::pair< CNTK::NDArrayViewPtr,CNTK::NDArrayViewPtr >,std::hash< CNTK::StreamInformation >,std::equal_to< CNTK::StreamInformation >,std::allocator< std::pair< CNTK::StreamInformation const,std::pair< CNTK::NDArrayViewPtr,CNTK::NDArrayViewPtr > > > > &computedMeanAndVariances)\n");
  
  return Qnil;
}

.__constant_initializer__(*args, self) ⇒ Object



25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
# File 'ext/cntk/cntk_wrap.cxx', line 25558

SWIGINTERN VALUE _wrap___constant_initializer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[1];
  int ii;
  
  argc = nargs;
  if (argc > 1) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap___constant_initializer____SWIG_1(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap___constant_initializer____SWIG_0(nargs, args, self);
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 1, "__constant_initializer__", 
    "    CNTK::Dictionary __constant_initializer__(double value)\n"
    "    CNTK::Dictionary __constant_initializer__()\n");
  
  return Qnil;
}

.__convolution__(*args, self) ⇒ Object



46843
46844
46845
46846
46847
46848
46849
46850
46851
46852
46853
46854
46855
46856
46857
46858
46859
46860
46861
46862
46863
46864
46865
46866
46867
46868
46869
46870
46871
46872
46873
46874
46875
46876
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
46887
46888
46889
46890
46891
46892
46893
46894
46895
46896
46897
46898
46899
46900
46901
46902
46903
46904
46905
46906
46907
46908
46909
46910
46911
46912
46913
46914
46915
46916
46917
46918
46919
46920
46921
46922
46923
46924
46925
46926
46927
46928
46929
46930
46931
46932
46933
46934
46935
46936
46937
46938
46939
46940
46941
46942
46943
46944
46945
46946
46947
46948
46949
46950
46951
46952
46953
46954
46955
46956
46957
46958
46959
46960
46961
46962
46963
46964
46965
46966
46967
46968
46969
46970
46971
46972
46973
46974
46975
46976
46977
46978
46979
46980
46981
46982
46983
46984
46985
46986
46987
46988
46989
46990
46991
46992
46993
46994
46995
46996
46997
46998
46999
47000
47001
47002
47003
47004
47005
47006
47007
47008
47009
47010
47011
47012
47013
47014
47015
47016
47017
47018
47019
47020
47021
47022
47023
47024
47025
47026
47027
47028
47029
47030
47031
47032
47033
47034
47035
47036
47037
47038
47039
47040
47041
47042
47043
47044
47045
47046
47047
47048
47049
47050
47051
47052
47053
47054
47055
47056
47057
47058
47059
47060
47061
47062
47063
47064
47065
47066
47067
47068
47069
47070
47071
47072
47073
47074
47075
47076
47077
47078
47079
47080
47081
47082
47083
47084
47085
47086
47087
47088
47089
47090
47091
47092
47093
47094
47095
47096
47097
47098
47099
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116
47117
47118
47119
47120
47121
47122
47123
47124
47125
47126
47127
47128
47129
47130
47131
47132
47133
47134
47135
47136
# File 'ext/cntk/cntk_wrap.cxx', line 46843

SWIGINTERN VALUE _wrap___convolution__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[9];
  int ii;
  
  argc = nargs;
  if (argc > 9) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___convolution____SWIG_7(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          return _wrap___convolution____SWIG_6(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector<bool,std::allocator< bool > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___convolution____SWIG_5(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector<bool,std::allocator< bool > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___convolution____SWIG_4(nargs, args, self);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector<bool,std::allocator< bool > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                // '1000' is the typecheck precedence code. It means: check after basic
                // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                _v = NIL_P(rb_check_array_type(argv[5])) ? 0 : 1;
              }
              if (_v) {
                return _wrap___convolution____SWIG_3(nargs, args, self);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector<bool,std::allocator< bool > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                // '1000' is the typecheck precedence code. It means: check after basic
                // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                _v = NIL_P(rb_check_array_type(argv[5])) ? 0 : 1;
              }
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  return _wrap___convolution____SWIG_2(nargs, args, self);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector<bool,std::allocator< bool > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                // '1000' is the typecheck precedence code. It means: check after basic
                // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                _v = NIL_P(rb_check_array_type(argv[5])) ? 0 : 1;
              }
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_size_t(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap___convolution____SWIG_1(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector<bool,std::allocator< bool > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                // '1000' is the typecheck precedence code. It means: check after basic
                // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                _v = NIL_P(rb_check_array_type(argv[5])) ? 0 : 1;
              }
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_size_t(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_AsPtr_std_wstring(argv[8], (std::wstring**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap___convolution____SWIG_0(nargs, args, self);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 9, "__convolution__", 
    "    CNTK::FunctionPtr __convolution__(CNTK::Variable const &convolutionMap, CNTK::Variable const &operand, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &sharing, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad, CNTK::NDShape const &upperPad, size_t maxTempMemSizeInSamples, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __convolution__(CNTK::Variable const &convolutionMap, CNTK::Variable const &operand, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &sharing, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad, CNTK::NDShape const &upperPad, size_t maxTempMemSizeInSamples)\n"
    "    CNTK::FunctionPtr __convolution__(CNTK::Variable const &convolutionMap, CNTK::Variable const &operand, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &sharing, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad, CNTK::NDShape const &upperPad)\n"
    "    CNTK::FunctionPtr __convolution__(CNTK::Variable const &convolutionMap, CNTK::Variable const &operand, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &sharing, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad)\n"
    "    CNTK::FunctionPtr __convolution__(CNTK::Variable const &convolutionMap, CNTK::Variable const &operand, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &sharing, std::vector< bool,std::allocator< bool > > const &autoPadding)\n"
    "    CNTK::FunctionPtr __convolution__(CNTK::Variable const &convolutionMap, CNTK::Variable const &operand, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &sharing)\n"
    "    CNTK::FunctionPtr __convolution__(CNTK::Variable const &convolutionMap, CNTK::Variable const &operand, CNTK::NDShape const &strides)\n"
    "    CNTK::FunctionPtr __convolution__(CNTK::Variable const &convolutionMap, CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__cos__(*args, self) ⇒ Object



35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
# File 'ext/cntk/cntk_wrap.cxx', line 35038

SWIGINTERN VALUE _wrap___cos__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___cos____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___cos____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__cos__", 
    "    CNTK::FunctionPtr __cos__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __cos__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__cosine_distance__(*args, self) ⇒ Object



41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
41343
41344
41345
41346
41347
41348
41349
41350
41351
41352
41353
41354
41355
41356
41357
41358
41359
41360
41361
41362
41363
41364
41365
41366
41367
41368
41369
41370
# File 'ext/cntk/cntk_wrap.cxx', line 41321

SWIGINTERN VALUE _wrap___cosine_distance__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___cosine_distance____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___cosine_distance____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__cosine_distance__", 
    "    CNTK::FunctionPtr __cosine_distance__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __cosine_distance__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__create_basic_training_session__(*args, self) ⇒ Object



67605
67606
67607
67608
67609
67610
67611
67612
67613
67614
67615
67616
67617
67618
67619
67620
67621
67622
67623
67624
67625
67626
67627
67628
67629
67630
67631
67632
67633
67634
67635
67636
67637
67638
67639
67640
67641
67642
67643
67644
67645
67646
67647
67648
67649
67650
67651
67652
67653
67654
67655
67656
67657
67658
67659
67660
67661
67662
67663
67664
67665
67666
67667
67668
67669
67670
67671
67672
67673
67674
67675
67676
67677
67678
67679
67680
67681
67682
67683
67684
67685
67686
67687
67688
67689
67690
67691
67692
67693
67694
67695
67696
67697
67698
67699
67700
67701
67702
67703
67704
67705
67706
67707
67708
67709
67710
67711
67712
67713
67714
67715
67716
67717
67718
67719
67720
67721
67722
67723
67724
67725
67726
67727
67728
67729
67730
67731
67732
67733
67734
67735
67736
67737
67738
67739
67740
67741
67742
67743
67744
67745
67746
67747
67748
67749
67750
67751
67752
67753
67754
67755
67756
67757
67758
67759
67760
67761
67762
67763
67764
67765
67766
67767
67768
67769
67770
67771
67772
67773
67774
67775
67776
67777
67778
67779
67780
67781
67782
67783
67784
67785
67786
67787
67788
67789
67790
67791
67792
67793
67794
67795
67796
67797
67798
67799
67800
67801
67802
67803
67804
67805
67806
67807
67808
67809
67810
67811
67812
67813
67814
67815
67816
67817
67818
67819
67820
67821
67822
67823
67824
67825
67826
67827
67828
67829
67830
67831
67832
67833
67834
67835
67836
67837
67838
67839
67840
67841
67842
67843
67844
67845
67846
67847
67848
67849
67850
67851
67852
67853
67854
67855
67856
67857
67858
67859
67860
67861
67862
67863
67864
67865
67866
67867
67868
67869
67870
67871
67872
67873
67874
67875
67876
67877
67878
67879
67880
67881
67882
67883
67884
67885
67886
67887
67888
67889
67890
67891
67892
67893
67894
67895
67896
67897
67898
67899
67900
67901
67902
67903
67904
67905
67906
67907
67908
67909
67910
67911
67912
67913
67914
67915
67916
67917
67918
67919
67920
67921
67922
67923
67924
67925
67926
67927
67928
67929
67930
67931
67932
67933
67934
67935
67936
67937
67938
67939
67940
67941
67942
67943
67944
67945
67946
67947
67948
67949
67950
67951
67952
67953
67954
67955
67956
67957
67958
67959
67960
67961
67962
67963
67964
67965
67966
67967
67968
67969
67970
67971
67972
67973
67974
67975
67976
67977
67978
67979
67980
67981
67982
67983
67984
67985
67986
67987
67988
67989
67990
67991
67992
67993
67994
67995
67996
67997
67998
67999
68000
68001
68002
68003
68004
68005
68006
68007
68008
68009
68010
68011
68012
68013
68014
68015
68016
68017
68018
68019
68020
68021
68022
68023
68024
68025
68026
68027
68028
68029
68030
68031
68032
# File 'ext/cntk/cntk_wrap.cxx', line 67605

SWIGINTERN VALUE _wrap___create_basic_training_session__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[13];
  int ii;
  
  argc = nargs;
  if (argc > 13) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Trainer_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__Variable_CNTK__StreamInformation_std__hashT_CNTK__Variable_t_std__equal_toT_CNTK__Variable_t_std__allocatorT_std__pairT_CNTK__Variable_const_CNTK__StreamInformation_t_t_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_size_t(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap___create_basic_training_session____SWIG_7(nargs, args, self);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Trainer_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__Variable_CNTK__StreamInformation_std__hashT_CNTK__Variable_t_std__equal_toT_CNTK__Variable_t_std__allocatorT_std__pairT_CNTK__Variable_const_CNTK__StreamInformation_t_t_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_size_t(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap___create_basic_training_session____SWIG_6(nargs, args, self);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Trainer_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__Variable_CNTK__StreamInformation_std__hashT_CNTK__Variable_t_std__equal_toT_CNTK__Variable_t_std__allocatorT_std__pairT_CNTK__Variable_const_CNTK__StreamInformation_t_t_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_size_t(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  void *vptr = 0;
                  int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap___create_basic_training_session____SWIG_5(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Trainer_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__Variable_CNTK__StreamInformation_std__hashT_CNTK__Variable_t_std__equal_toT_CNTK__Variable_t_std__allocatorT_std__pairT_CNTK__Variable_const_CNTK__StreamInformation_t_t_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_size_t(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  void *vptr = 0;
                  int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_size_t(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap___create_basic_training_session____SWIG_4(nargs, args, self);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Trainer_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__Variable_CNTK__StreamInformation_std__hashT_CNTK__Variable_t_std__equal_toT_CNTK__Variable_t_std__allocatorT_std__pairT_CNTK__Variable_const_CNTK__StreamInformation_t_t_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_size_t(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  void *vptr = 0;
                  int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_size_t(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap___create_basic_training_session____SWIG_3(nargs, args, self);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Trainer_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__Variable_CNTK__StreamInformation_std__hashT_CNTK__Variable_t_std__equal_toT_CNTK__Variable_t_std__allocatorT_std__pairT_CNTK__Variable_const_CNTK__StreamInformation_t_t_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_size_t(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  void *vptr = 0;
                  int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_size_t(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap___create_basic_training_session____SWIG_2(nargs, args, self);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Trainer_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__Variable_CNTK__StreamInformation_std__hashT_CNTK__Variable_t_std__equal_toT_CNTK__Variable_t_std__allocatorT_std__pairT_CNTK__Variable_const_CNTK__StreamInformation_t_t_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_size_t(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  void *vptr = 0;
                  int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_size_t(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_size_t(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap___create_basic_training_session____SWIG_1(nargs, args, self);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Trainer_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__unordered_mapT_CNTK__Variable_CNTK__StreamInformation_std__hashT_CNTK__Variable_t_std__equal_toT_CNTK__Variable_t_std__allocatorT_std__pairT_CNTK__Variable_const_CNTK__StreamInformation_t_t_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_size_t(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  void *vptr = 0;
                  int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_CNTK__TrainingParameterPerUnitScheduleT_size_t_CNTK__TrainingParameterScheduleT_size_t_t__UnitType__Sample_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_size_t(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_size_t(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_size_t(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap___create_basic_training_session____SWIG_0(nargs, args, self);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 13, "__create_basic_training_session__", 
    "    CNTK::TrainingSessionPtr __create_basic_training_session__(CNTK::MinibatchSourcePtr const &trainingSource, CNTK::TrainerPtr const &trainer, std::unordered_map< CNTK::Variable,CNTK::StreamInformation,std::hash< CNTK::Variable >,std::equal_to< CNTK::Variable >,std::allocator< std::pair< CNTK::Variable const,CNTK::StreamInformation > > > const &modelInputToMinibatchSourceStream, CNTK::MinibatchSizeSchedule const &minibatchSizeSchedule, size_t checkpointFrequencyInSamples, std::wstring const &checkPointFileName, CNTK::MinibatchSourcePtr const &crossValidationSource, CNTK::MinibatchSizeSchedule const &crossValidationSchedule, size_t crossValidationFrequencyInSamples, bool restoreFromCheckpointIfExists, bool keepExistingCheckpoints, size_t maxNumberOfTrainingSamples, size_t progressFrequency)\n"
    "    CNTK::TrainingSessionPtr __create_basic_training_session__(CNTK::MinibatchSourcePtr const &trainingSource, CNTK::TrainerPtr const &trainer, std::unordered_map< CNTK::Variable,CNTK::StreamInformation,std::hash< CNTK::Variable >,std::equal_to< CNTK::Variable >,std::allocator< std::pair< CNTK::Variable const,CNTK::StreamInformation > > > const &modelInputToMinibatchSourceStream, CNTK::MinibatchSizeSchedule const &minibatchSizeSchedule, size_t checkpointFrequencyInSamples, std::wstring const &checkPointFileName, CNTK::MinibatchSourcePtr const &crossValidationSource, CNTK::MinibatchSizeSchedule const &crossValidationSchedule, size_t crossValidationFrequencyInSamples, bool restoreFromCheckpointIfExists, bool keepExistingCheckpoints, size_t maxNumberOfTrainingSamples)\n"
    "    CNTK::TrainingSessionPtr __create_basic_training_session__(CNTK::MinibatchSourcePtr const &trainingSource, CNTK::TrainerPtr const &trainer, std::unordered_map< CNTK::Variable,CNTK::StreamInformation,std::hash< CNTK::Variable >,std::equal_to< CNTK::Variable >,std::allocator< std::pair< CNTK::Variable const,CNTK::StreamInformation > > > const &modelInputToMinibatchSourceStream, CNTK::MinibatchSizeSchedule const &minibatchSizeSchedule, size_t checkpointFrequencyInSamples, std::wstring const &checkPointFileName, CNTK::MinibatchSourcePtr const &crossValidationSource, CNTK::MinibatchSizeSchedule const &crossValidationSchedule, size_t crossValidationFrequencyInSamples, bool restoreFromCheckpointIfExists, bool keepExistingCheckpoints)\n"
    "    CNTK::TrainingSessionPtr __create_basic_training_session__(CNTK::MinibatchSourcePtr const &trainingSource, CNTK::TrainerPtr const &trainer, std::unordered_map< CNTK::Variable,CNTK::StreamInformation,std::hash< CNTK::Variable >,std::equal_to< CNTK::Variable >,std::allocator< std::pair< CNTK::Variable const,CNTK::StreamInformation > > > const &modelInputToMinibatchSourceStream, CNTK::MinibatchSizeSchedule const &minibatchSizeSchedule, size_t checkpointFrequencyInSamples, std::wstring const &checkPointFileName, CNTK::MinibatchSourcePtr const &crossValidationSource, CNTK::MinibatchSizeSchedule const &crossValidationSchedule, size_t crossValidationFrequencyInSamples, bool restoreFromCheckpointIfExists)\n"
    "    CNTK::TrainingSessionPtr __create_basic_training_session__(CNTK::MinibatchSourcePtr const &trainingSource, CNTK::TrainerPtr const &trainer, std::unordered_map< CNTK::Variable,CNTK::StreamInformation,std::hash< CNTK::Variable >,std::equal_to< CNTK::Variable >,std::allocator< std::pair< CNTK::Variable const,CNTK::StreamInformation > > > const &modelInputToMinibatchSourceStream, CNTK::MinibatchSizeSchedule const &minibatchSizeSchedule, size_t checkpointFrequencyInSamples, std::wstring const &checkPointFileName, CNTK::MinibatchSourcePtr const &crossValidationSource, CNTK::MinibatchSizeSchedule const &crossValidationSchedule, size_t crossValidationFrequencyInSamples)\n"
    "    CNTK::TrainingSessionPtr __create_basic_training_session__(CNTK::MinibatchSourcePtr const &trainingSource, CNTK::TrainerPtr const &trainer, std::unordered_map< CNTK::Variable,CNTK::StreamInformation,std::hash< CNTK::Variable >,std::equal_to< CNTK::Variable >,std::allocator< std::pair< CNTK::Variable const,CNTK::StreamInformation > > > const &modelInputToMinibatchSourceStream, CNTK::MinibatchSizeSchedule const &minibatchSizeSchedule, size_t checkpointFrequencyInSamples, std::wstring const &checkPointFileName, CNTK::MinibatchSourcePtr const &crossValidationSource, CNTK::MinibatchSizeSchedule const &crossValidationSchedule)\n"
    "    CNTK::TrainingSessionPtr __create_basic_training_session__(CNTK::MinibatchSourcePtr const &trainingSource, CNTK::TrainerPtr const &trainer, std::unordered_map< CNTK::Variable,CNTK::StreamInformation,std::hash< CNTK::Variable >,std::equal_to< CNTK::Variable >,std::allocator< std::pair< CNTK::Variable const,CNTK::StreamInformation > > > const &modelInputToMinibatchSourceStream, CNTK::MinibatchSizeSchedule const &minibatchSizeSchedule, size_t checkpointFrequencyInSamples, std::wstring const &checkPointFileName, CNTK::MinibatchSourcePtr const &crossValidationSource)\n"
    "    CNTK::TrainingSessionPtr __create_basic_training_session__(CNTK::MinibatchSourcePtr const &trainingSource, CNTK::TrainerPtr const &trainer, std::unordered_map< CNTK::Variable,CNTK::StreamInformation,std::hash< CNTK::Variable >,std::equal_to< CNTK::Variable >,std::allocator< std::pair< CNTK::Variable const,CNTK::StreamInformation > > > const &modelInputToMinibatchSourceStream, CNTK::MinibatchSizeSchedule const &minibatchSizeSchedule, size_t checkpointFrequencyInSamples, std::wstring const &checkPointFileName)\n");
  
  return Qnil;
}

.__create_composite_minibatch_source__(*args) ⇒ Object



62015
62016
62017
62018
62019
62020
62021
62022
62023
62024
62025
62026
62027
62028
62029
62030
62031
62032
62033
62034
62035
62036
62037
62038
62039
62040
62041
62042
62043
62044
62045
62046
62047
62048
62049
62050
62051
62052
62053
62054
62055
62056
62057
62058
# File 'ext/cntk/cntk_wrap.cxx', line 62015

SWIGINTERN VALUE
_wrap___create_composite_minibatch_source__(int argc, VALUE *argv, VALUE self) {
  CNTK::Dictionary *arg1 = 0 ;
  void *argp1 ;
  int res1 = 0 ;
  CNTK::MinibatchSourcePtr result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CNTK__Dictionary,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::Dictionary const &","CNTK::CreateCompositeMinibatchSource", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "CNTK::Dictionary const &","CNTK::CreateCompositeMinibatchSource", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< CNTK::Dictionary * >(argp1);
  {
    try {
      result = CNTK::CreateCompositeMinibatchSource((CNTK::Dictionary const &)*arg1); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  {
    std::shared_ptr<  CNTK::MinibatchSource > *smartresult = result ? new std::shared_ptr<  CNTK::MinibatchSource >(result) : 0;
    vresult = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_CNTK__MinibatchSource_t, SWIG_POINTER_OWN);
  }
  return vresult;
fail:
  return Qnil;
}

.__create_trainer__(*args, self) ⇒ Object



59970
59971
59972
59973
59974
59975
59976
59977
59978
59979
59980
59981
59982
59983
59984
59985
59986
59987
59988
59989
59990
59991
59992
59993
59994
59995
59996
59997
59998
59999
60000
60001
60002
60003
60004
60005
60006
60007
60008
60009
60010
60011
60012
60013
60014
60015
60016
60017
60018
60019
60020
60021
60022
60023
# File 'ext/cntk/cntk_wrap.cxx', line 59970

SWIGINTERN VALUE _wrap___create_trainer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::shared_ptr< CNTK::Learner >,std::allocator< std::shared_ptr< CNTK::Learner > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___create_trainer____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< std::shared_ptr< CNTK::Learner >,std::allocator< std::shared_ptr< CNTK::Learner > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___create_trainer____SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__create_trainer__", 
    "    CNTK::TrainerPtr __create_trainer__(CNTK::FunctionPtr const &model, CNTK::FunctionPtr const &lossFunction, std::vector< CNTK::LearnerPtr,std::allocator< CNTK::LearnerPtr > > const &parameterLearners)\n"
    "    CNTK::TrainerPtr __create_trainer__(CNTK::FunctionPtr const &model, CNTK::FunctionPtr const &lossFunction, CNTK::FunctionPtr const &evaluationFunction, std::vector< CNTK::LearnerPtr,std::allocator< CNTK::LearnerPtr > > const &parameterLearners)\n");
  
  return Qnil;
}

.__cross_entropy_with_softmax__(*args, self) ⇒ Object



42228
42229
42230
42231
42232
42233
42234
42235
42236
42237
42238
42239
42240
42241
42242
42243
42244
42245
42246
42247
42248
42249
42250
42251
42252
42253
42254
42255
42256
42257
42258
42259
42260
42261
42262
42263
42264
42265
42266
42267
42268
42269
42270
42271
42272
42273
42274
42275
42276
42277
42278
42279
42280
42281
42282
42283
42284
42285
42286
42287
42288
42289
42290
42291
42292
42293
42294
42295
42296
42297
42298
42299
42300
42301
42302
42303
42304
42305
42306
42307
42308
42309
42310
42311
42312
42313
42314
42315
42316
42317
42318
42319
42320
42321
# File 'ext/cntk/cntk_wrap.cxx', line 42228

SWIGINTERN VALUE _wrap___cross_entropy_with_softmax__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___cross_entropy_with_softmax____SWIG_3(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___cross_entropy_with_softmax____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___cross_entropy_with_softmax____SWIG_2(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___cross_entropy_with_softmax____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__cross_entropy_with_softmax__", 
    "    CNTK::FunctionPtr __cross_entropy_with_softmax__(CNTK::Variable const &prediction, CNTK::Variable const &labels, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __cross_entropy_with_softmax__(CNTK::Variable const &prediction, CNTK::Variable const &labels, CNTK::Axis const &axis)\n"
    "    CNTK::FunctionPtr __cross_entropy_with_softmax__(CNTK::Variable const &prediction, CNTK::Variable const &labels, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __cross_entropy_with_softmax__(CNTK::Variable const &prediction, CNTK::Variable const &labels)\n");
  
  return Qnil;
}

.__data_type_name__(*args) ⇒ Object



17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
# File 'ext/cntk/cntk_wrap.cxx', line 17542

SWIGINTERN VALUE
_wrap___data_type_name__(int argc, VALUE *argv, VALUE self) {
  enum CNTK::DataType arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "enum CNTK::DataType","CNTK::DataTypeName", 1, argv[0] ));
  } 
  arg1 = static_cast< enum CNTK::DataType >(val1);
  {
    try {
      result = (char *)CNTK::DataTypeName(arg1); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}

.__data_type_size__(*args) ⇒ Object



17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
# File 'ext/cntk/cntk_wrap.cxx', line 17582

SWIGINTERN VALUE
_wrap___data_type_size__(int argc, VALUE *argv, VALUE self) {
  enum CNTK::DataType arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "enum CNTK::DataType","CNTK::DataTypeSize", 1, argv[0] ));
  } 
  arg1 = static_cast< enum CNTK::DataType >(val1);
  {
    try {
      result = CNTK::DataTypeSize(arg1); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_From_size_t(static_cast< size_t >(result));
  return vresult;
fail:
  return Qnil;
}

.__dropout__(*args, self) ⇒ Object



37744
37745
37746
37747
37748
37749
37750
37751
37752
37753
37754
37755
37756
37757
37758
37759
37760
37761
37762
37763
37764
37765
37766
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781
37782
37783
37784
37785
37786
37787
37788
37789
37790
37791
37792
37793
37794
37795
# File 'ext/cntk/cntk_wrap.cxx', line 37744

SWIGINTERN VALUE _wrap___dropout__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___dropout____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___dropout____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__dropout__", 
    "    CNTK::FunctionPtr __dropout__(CNTK::Variable const &operand, double dropoutRate, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __dropout__(CNTK::Variable const &operand, double dropoutRate)\n");
  
  return Qnil;
}

.__edit_distance_error__(*args, self) ⇒ Object



42547
42548
42549
42550
42551
42552
42553
42554
42555
42556
42557
42558
42559
42560
42561
42562
42563
42564
42565
42566
42567
42568
42569
42570
42571
42572
42573
42574
42575
42576
42577
42578
42579
42580
42581
42582
42583
42584
42585
42586
42587
42588
42589
42590
42591
42592
42593
42594
42595
42596
42597
42598
42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
42610
42611
42612
42613
42614
42615
42616
42617
42618
42619
42620
42621
42622
42623
42624
42625
42626
42627
42628
42629
42630
42631
42632
42633
42634
42635
42636
42637
42638
42639
42640
42641
42642
42643
42644
42645
42646
42647
42648
42649
42650
42651
42652
# File 'ext/cntk/cntk_wrap.cxx', line 42547

SWIGINTERN VALUE _wrap___edit_distance_error__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[8];
  int ii;
  
  argc = nargs;
  if (argc > 8) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_float(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_float(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< size_t,std::allocator< size_t > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap___edit_distance_error____SWIG_1(nargs, args, self);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_float(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_float(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< size_t,std::allocator< size_t > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_AsPtr_std_wstring(argv[7], (std::wstring**)(0));
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap___edit_distance_error____SWIG_0(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 8, "__edit_distance_error__", 
    "    CNTK::FunctionPtr __edit_distance_error__(CNTK::Variable const &prediction, CNTK::Variable const &labels, float substitutionPenalty, float deletionPenalty, float insertionPenalty, bool squashInputs, std::vector< size_t,std::allocator< size_t > > const &samplesToIgnore, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __edit_distance_error__(CNTK::Variable const &prediction, CNTK::Variable const &labels, float substitutionPenalty, float deletionPenalty, float insertionPenalty, bool squashInputs, std::vector< size_t,std::allocator< size_t > > const &samplesToIgnore)\n");
  
  return Qnil;
}

.__element_divide__(*args, self) ⇒ Object



39091
39092
39093
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104
39105
39106
39107
39108
39109
39110
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129
39130
39131
39132
39133
39134
39135
39136
39137
39138
39139
39140
# File 'ext/cntk/cntk_wrap.cxx', line 39091

SWIGINTERN VALUE _wrap___element_divide__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___element_divide____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___element_divide____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__element_divide__", 
    "    CNTK::FunctionPtr __element_divide__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __element_divide__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__element_select__(*args, self) ⇒ Object



51525
51526
51527
51528
51529
51530
51531
51532
51533
51534
51535
51536
51537
51538
51539
51540
51541
51542
51543
51544
51545
51546
51547
51548
51549
51550
51551
51552
51553
51554
51555
51556
51557
51558
51559
51560
51561
51562
51563
51564
51565
51566
51567
51568
51569
51570
51571
51572
51573
51574
51575
51576
51577
51578
51579
51580
51581
51582
51583
51584
# File 'ext/cntk/cntk_wrap.cxx', line 51525

SWIGINTERN VALUE _wrap___element_select__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___element_select____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___element_select____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__element_select__", 
    "    CNTK::FunctionPtr __element_select__(CNTK::Variable const &condition, CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __element_select__(CNTK::Variable const &condition, CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__element_times__(*args, self) ⇒ Object



38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959
# File 'ext/cntk/cntk_wrap.cxx', line 38910

SWIGINTERN VALUE _wrap___element_times__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___element_times____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___element_times____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__element_times__", 
    "    CNTK::FunctionPtr __element_times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __element_times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__equal__(*args, self) ⇒ Object



39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300
39301
39302
39303
39304
39305
39306
39307
39308
39309
39310
39311
39312
39313
39314
39315
39316
39317
39318
39319
39320
39321
# File 'ext/cntk/cntk_wrap.cxx', line 39272

SWIGINTERN VALUE _wrap___equal__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___equal____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___equal____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__equal__", 
    "    CNTK::FunctionPtr __equal__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __equal__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__exp__(*args, self) ⇒ Object



35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
# File 'ext/cntk/cntk_wrap.cxx', line 35336

SWIGINTERN VALUE _wrap___exp__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___exp____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___exp____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__exp__", 
    "    CNTK::FunctionPtr __exp__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __exp__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__first__(*args, self) ⇒ Object



52708
52709
52710
52711
52712
52713
52714
52715
52716
52717
52718
52719
52720
52721
52722
52723
52724
52725
52726
52727
52728
52729
52730
52731
52732
52733
52734
52735
52736
52737
52738
52739
52740
52741
52742
52743
52744
52745
52746
52747
# File 'ext/cntk/cntk_wrap.cxx', line 52708

SWIGINTERN VALUE _wrap___first__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___first____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___first____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__first__", 
    "    CNTK::FunctionPtr __first__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __first__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__floor__(*args, self) ⇒ Object



36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
# File 'ext/cntk/cntk_wrap.cxx', line 36081

SWIGINTERN VALUE _wrap___floor__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___floor____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___floor____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__floor__", 
    "    CNTK::FunctionPtr __floor__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __floor__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__future_value__(*args, self) ⇒ Object



44547
44548
44549
44550
44551
44552
44553
44554
44555
44556
44557
44558
44559
44560
44561
44562
44563
44564
44565
44566
44567
44568
44569
44570
44571
44572
44573
44574
44575
44576
44577
44578
44579
44580
44581
44582
44583
44584
44585
44586
44587
44588
44589
44590
44591
44592
44593
44594
44595
44596
44597
44598
44599
44600
44601
44602
44603
44604
44605
44606
44607
44608
44609
44610
44611
44612
44613
44614
44615
44616
44617
44618
44619
44620
44621
44622
44623
44624
44625
44626
44627
44628
44629
44630
44631
44632
44633
44634
44635
44636
44637
44638
44639
44640
44641
44642
44643
44644
44645
44646
44647
44648
44649
44650
44651
44652
44653
44654
44655
44656
44657
44658
44659
44660
44661
44662
44663
44664
44665
44666
44667
44668
44669
# File 'ext/cntk/cntk_wrap.cxx', line 44547

SWIGINTERN VALUE _wrap___future_value__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___future_value____SWIG_5(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___future_value____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___future_value____SWIG_4(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___future_value____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___future_value____SWIG_3(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___future_value____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__future_value__", 
    "    CNTK::FunctionPtr __future_value__(CNTK::Variable const &operand, CNTK::Variable const &initialState, size_t offset, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __future_value__(CNTK::Variable const &operand, CNTK::Variable const &initialState, size_t offset)\n"
    "    CNTK::FunctionPtr __future_value__(CNTK::Variable const &operand, CNTK::Variable const &initialState)\n"
    "    CNTK::FunctionPtr __future_value__(CNTK::Variable const &operand, size_t offset, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __future_value__(CNTK::Variable const &operand, size_t offset)\n"
    "    CNTK::FunctionPtr __future_value__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__gather__(*args, self) ⇒ Object



53177
53178
53179
53180
53181
53182
53183
53184
53185
53186
53187
53188
53189
53190
53191
53192
53193
53194
53195
53196
53197
53198
53199
53200
53201
53202
53203
53204
53205
53206
53207
53208
53209
53210
53211
53212
53213
53214
53215
53216
53217
53218
53219
53220
53221
53222
53223
53224
53225
53226
# File 'ext/cntk/cntk_wrap.cxx', line 53177

SWIGINTERN VALUE _wrap___gather__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___gather____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___gather____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__gather__", 
    "    CNTK::FunctionPtr __gather__(CNTK::Variable const &operand, CNTK::Variable const &condition, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __gather__(CNTK::Variable const &operand, CNTK::Variable const &condition)\n");
  
  return Qnil;
}

.__get_max_num_cputhreads__(*args) ⇒ Object



68254
68255
68256
68257
68258
68259
68260
68261
68262
68263
68264
68265
68266
68267
68268
68269
68270
68271
68272
68273
68274
68275
68276
68277
68278
68279
68280
68281
68282
68283
# File 'ext/cntk/cntk_wrap.cxx', line 68254

SWIGINTERN VALUE
_wrap___get_max_num_cputhreads__(int argc, VALUE *argv, VALUE self) {
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  {
    try {
      result = CNTK::GetMaxNumCPUThreads(); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_From_size_t(static_cast< size_t >(result));
  return vresult;
fail:
  return Qnil;
}

.__glorot_normal_initializer__(*args, self) ⇒ Object



26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
# File 'ext/cntk/cntk_wrap.cxx', line 26955

SWIGINTERN VALUE _wrap___glorot_normal_initializer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap___glorot_normal_initializer____SWIG_4(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap___glorot_normal_initializer____SWIG_3(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___glorot_normal_initializer____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___glorot_normal_initializer____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_long(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___glorot_normal_initializer____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__glorot_normal_initializer__", 
    "    CNTK::Dictionary __glorot_normal_initializer__(double scale, int outputRank, int filterRank, unsigned long seed)\n"
    "    CNTK::Dictionary __glorot_normal_initializer__(double scale, int outputRank, int filterRank)\n"
    "    CNTK::Dictionary __glorot_normal_initializer__(double scale, int outputRank)\n"
    "    CNTK::Dictionary __glorot_normal_initializer__(double scale)\n"
    "    CNTK::Dictionary __glorot_normal_initializer__()\n");
  
  return Qnil;
}

.__glorot_uniform_initializer__(*args, self) ⇒ Object



26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
# File 'ext/cntk/cntk_wrap.cxx', line 26613

SWIGINTERN VALUE _wrap___glorot_uniform_initializer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap___glorot_uniform_initializer____SWIG_4(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap___glorot_uniform_initializer____SWIG_3(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___glorot_uniform_initializer____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___glorot_uniform_initializer____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_long(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___glorot_uniform_initializer____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__glorot_uniform_initializer__", 
    "    CNTK::Dictionary __glorot_uniform_initializer__(double scale, int outputRank, int filterRank, unsigned long seed)\n"
    "    CNTK::Dictionary __glorot_uniform_initializer__(double scale, int outputRank, int filterRank)\n"
    "    CNTK::Dictionary __glorot_uniform_initializer__(double scale, int outputRank)\n"
    "    CNTK::Dictionary __glorot_uniform_initializer__(double scale)\n"
    "    CNTK::Dictionary __glorot_uniform_initializer__()\n");
  
  return Qnil;
}

.__greater__(*args, self) ⇒ Object



39996
39997
39998
39999
40000
40001
40002
40003
40004
40005
40006
40007
40008
40009
40010
40011
40012
40013
40014
40015
40016
40017
40018
40019
40020
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037
40038
40039
40040
40041
40042
40043
40044
40045
# File 'ext/cntk/cntk_wrap.cxx', line 39996

SWIGINTERN VALUE _wrap___greater__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___greater____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___greater____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__greater__", 
    "    CNTK::FunctionPtr __greater__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __greater__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__greater_equal__(*args, self) ⇒ Object



40177
40178
40179
40180
40181
40182
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192
40193
40194
40195
40196
40197
40198
40199
40200
40201
40202
40203
40204
40205
40206
40207
40208
40209
40210
40211
40212
40213
40214
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
# File 'ext/cntk/cntk_wrap.cxx', line 40177

SWIGINTERN VALUE _wrap___greater_equal__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___greater_equal____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___greater_equal____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__greater_equal__", 
    "    CNTK::FunctionPtr __greater_equal__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __greater_equal__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__hardmax__(*args, self) ⇒ Object



36826
36827
36828
36829
36830
36831
36832
36833
36834
36835
36836
36837
36838
36839
36840
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
# File 'ext/cntk/cntk_wrap.cxx', line 36826

SWIGINTERN VALUE _wrap___hardmax__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___hardmax____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___hardmax____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__hardmax__", 
    "    CNTK::FunctionPtr __hardmax__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __hardmax__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__he_normal_initializer__(*args, self) ⇒ Object



27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
# File 'ext/cntk/cntk_wrap.cxx', line 27639

SWIGINTERN VALUE _wrap___he_normal_initializer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap___he_normal_initializer____SWIG_4(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap___he_normal_initializer____SWIG_3(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___he_normal_initializer____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___he_normal_initializer____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_long(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___he_normal_initializer____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__he_normal_initializer__", 
    "    CNTK::Dictionary __he_normal_initializer__(double scale, int outputRank, int filterRank, unsigned long seed)\n"
    "    CNTK::Dictionary __he_normal_initializer__(double scale, int outputRank, int filterRank)\n"
    "    CNTK::Dictionary __he_normal_initializer__(double scale, int outputRank)\n"
    "    CNTK::Dictionary __he_normal_initializer__(double scale)\n"
    "    CNTK::Dictionary __he_normal_initializer__()\n");
  
  return Qnil;
}

.__he_uniform_initializer__(*args, self) ⇒ Object



27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
# File 'ext/cntk/cntk_wrap.cxx', line 27297

SWIGINTERN VALUE _wrap___he_uniform_initializer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap___he_uniform_initializer____SWIG_4(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap___he_uniform_initializer____SWIG_3(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___he_uniform_initializer____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___he_uniform_initializer____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_long(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___he_uniform_initializer____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__he_uniform_initializer__", 
    "    CNTK::Dictionary __he_uniform_initializer__(double scale, int outputRank, int filterRank, unsigned long seed)\n"
    "    CNTK::Dictionary __he_uniform_initializer__(double scale, int outputRank, int filterRank)\n"
    "    CNTK::Dictionary __he_uniform_initializer__(double scale, int outputRank)\n"
    "    CNTK::Dictionary __he_uniform_initializer__(double scale)\n"
    "    CNTK::Dictionary __he_uniform_initializer__()\n");
  
  return Qnil;
}

.__input_variable__(*args, self) ⇒ Object



25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
# File 'ext/cntk/cntk_wrap.cxx', line 25264

SWIGINTERN VALUE _wrap___input_variable__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[6];
  int ii;
  
  argc = nargs;
  if (argc > 6) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 5) {
    int _v;
    {
      // '1000' is the typecheck precedence code. It means: check after basic
      // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
      _v = NIL_P(rb_check_array_type(argv[0])) ? 0 : 1;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_AsPtr_std_wstring(argv[4], (std::wstring**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___input_variable____SWIG_1(nargs, args, self);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      // '1000' is the typecheck precedence code. It means: check after basic
      // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
      _v = NIL_P(rb_check_array_type(argv[0])) ? 0 : 1;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_AsPtr_std_wstring(argv[4], (std::wstring**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< CNTK::Axis,std::allocator< CNTK::Axis > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap___input_variable____SWIG_0(nargs, args, self);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "__input_variable__", 
    "    CNTK::Variable __input_variable__(CNTK::NDShape const &shape, bool isSparse, enum CNTK::DataType dataType, bool needsGradient, std::wstring const &name, std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > const &dynamicAxes)\n"
    "    CNTK::Variable __input_variable__(CNTK::NDShape const &shape, bool isSparse, enum CNTK::DataType dataType, bool needsGradient, std::wstring const &name)\n");
  
  return Qnil;
}

.__is_first__(*args, self) ⇒ Object



52410
52411
52412
52413
52414
52415
52416
52417
52418
52419
52420
52421
52422
52423
52424
52425
52426
52427
52428
52429
52430
52431
52432
52433
52434
52435
52436
52437
52438
52439
52440
52441
52442
52443
52444
52445
52446
52447
52448
52449
# File 'ext/cntk/cntk_wrap.cxx', line 52410

SWIGINTERN VALUE _wrap___is_first__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___is_first____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___is_first____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__is_first__", 
    "    CNTK::FunctionPtr __is_first__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __is_first__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__is_last__(*args, self) ⇒ Object



52559
52560
52561
52562
52563
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591
52592
52593
52594
52595
52596
52597
52598
# File 'ext/cntk/cntk_wrap.cxx', line 52559

SWIGINTERN VALUE _wrap___is_last__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___is_last____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___is_last____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__is_last__", 
    "    CNTK::FunctionPtr __is_last__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __is_last__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__lambda_rank__(*args, self) ⇒ Object



43405
43406
43407
43408
43409
43410
43411
43412
43413
43414
43415
43416
43417
43418
43419
43420
43421
43422
43423
43424
43425
43426
43427
43428
43429
43430
43431
43432
43433
43434
43435
43436
43437
43438
43439
43440
43441
43442
43443
43444
43445
43446
43447
43448
43449
43450
43451
43452
43453
43454
43455
43456
43457
43458
43459
43460
43461
43462
43463
43464
# File 'ext/cntk/cntk_wrap.cxx', line 43405

SWIGINTERN VALUE _wrap___lambda_rank__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___lambda_rank____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___lambda_rank____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__lambda_rank__", 
    "    CNTK::FunctionPtr __lambda_rank__(CNTK::Variable const &prediction, CNTK::Variable const &gains, CNTK::Variable const &groupId, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __lambda_rank__(CNTK::Variable const &prediction, CNTK::Variable const &gains, CNTK::Variable const &groupId)\n");
  
  return Qnil;
}

.__last__(*args, self) ⇒ Object



52857
52858
52859
52860
52861
52862
52863
52864
52865
52866
52867
52868
52869
52870
52871
52872
52873
52874
52875
52876
52877
52878
52879
52880
52881
52882
52883
52884
52885
52886
52887
52888
52889
52890
52891
52892
52893
52894
52895
52896
# File 'ext/cntk/cntk_wrap.cxx', line 52857

SWIGINTERN VALUE _wrap___last__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___last____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___last____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__last__", 
    "    CNTK::FunctionPtr __last__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __last__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__less__(*args, self) ⇒ Object



39634
39635
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
39670
39671
39672
39673
39674
39675
39676
39677
39678
39679
39680
39681
39682
39683
# File 'ext/cntk/cntk_wrap.cxx', line 39634

SWIGINTERN VALUE _wrap___less__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___less____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___less____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__less__", 
    "    CNTK::FunctionPtr __less__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __less__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__less_equal__(*args, self) ⇒ Object



39815
39816
39817
39818
39819
39820
39821
39822
39823
39824
39825
39826
39827
39828
39829
39830
39831
39832
39833
39834
39835
39836
39837
39838
39839
39840
39841
39842
39843
39844
39845
39846
39847
39848
39849
39850
39851
39852
39853
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863
39864
# File 'ext/cntk/cntk_wrap.cxx', line 39815

SWIGINTERN VALUE _wrap___less_equal__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___less_equal____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___less_equal____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__less_equal__", 
    "    CNTK::FunctionPtr __less_equal__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __less_equal__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__log__(*args, self) ⇒ Object



35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
# File 'ext/cntk/cntk_wrap.cxx', line 35485

SWIGINTERN VALUE _wrap___log__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___log____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___log____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__log__", 
    "    CNTK::FunctionPtr __log__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __log__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__log_add_exp__(*args, self) ⇒ Object



38729
38730
38731
38732
38733
38734
38735
38736
38737
38738
38739
38740
38741
38742
38743
38744
38745
38746
38747
38748
38749
38750
38751
38752
38753
38754
38755
38756
38757
38758
38759
38760
38761
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771
38772
38773
38774
38775
38776
38777
38778
# File 'ext/cntk/cntk_wrap.cxx', line 38729

SWIGINTERN VALUE _wrap___log_add_exp__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___log_add_exp____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___log_add_exp____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__log_add_exp__", 
    "    CNTK::FunctionPtr __log_add_exp__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __log_add_exp__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__minus__(*args, self) ⇒ Object



38548
38549
38550
38551
38552
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
# File 'ext/cntk/cntk_wrap.cxx', line 38548

SWIGINTERN VALUE _wrap___minus__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___minus____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___minus____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__minus__", 
    "    CNTK::FunctionPtr __minus__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __minus__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__momentum_sgdlearner__(*args, self) ⇒ Object



56401
56402
56403
56404
56405
56406
56407
56408
56409
56410
56411
56412
56413
56414
56415
56416
56417
56418
56419
56420
56421
56422
56423
56424
56425
56426
56427
56428
56429
56430
56431
56432
56433
56434
56435
56436
56437
56438
56439
56440
56441
56442
56443
56444
56445
56446
56447
56448
56449
56450
56451
56452
56453
56454
56455
56456
56457
56458
56459
56460
56461
56462
56463
56464
56465
56466
56467
56468
56469
56470
56471
56472
56473
56474
56475
56476
56477
56478
56479
56480
56481
56482
56483
56484
56485
56486
56487
56488
56489
56490
# File 'ext/cntk/cntk_wrap.cxx', line 56401

SWIGINTERN VALUE _wrap___momentum_sgdlearner__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs;
  if (argc > 5) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___momentum_sgdlearner____SWIG_2(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___momentum_sgdlearner____SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__AdditionalLearningOptions, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___momentum_sgdlearner____SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "__momentum_sgdlearner__", 
    "    CNTK::LearnerPtr __momentum_sgdlearner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule, bool unitGain, CNTK::AdditionalLearningOptions additionalOptions)\n"
    "    CNTK::LearnerPtr __momentum_sgdlearner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule, bool unitGain)\n"
    "    CNTK::LearnerPtr __momentum_sgdlearner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule)\n");
  
  return Qnil;
}

.__mpicommunicator__(*args) ⇒ Object



63957
63958
63959
63960
63961
63962
63963
63964
63965
63966
63967
63968
63969
63970
63971
63972
63973
63974
63975
63976
63977
63978
63979
63980
63981
63982
63983
63984
63985
63986
63987
63988
63989
# File 'ext/cntk/cntk_wrap.cxx', line 63957

SWIGINTERN VALUE
_wrap___mpicommunicator__(int argc, VALUE *argv, VALUE self) {
  CNTK::DistributedCommunicatorPtr result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  {
    try {
      result = CNTK::MPICommunicator(); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  {
    std::shared_ptr<  CNTK::DistributedCommunicator > *smartresult = result ? new std::shared_ptr<  CNTK::DistributedCommunicator >(result) : 0;
    vresult = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_CNTK__DistributedCommunicator_t, SWIG_POINTER_OWN);
  }
  return vresult;
fail:
  return Qnil;
}

.__ndcgat1__(*args, self) ⇒ Object



43618
43619
43620
43621
43622
43623
43624
43625
43626
43627
43628
43629
43630
43631
43632
43633
43634
43635
43636
43637
43638
43639
43640
43641
43642
43643
43644
43645
43646
43647
43648
43649
43650
43651
43652
43653
43654
43655
43656
43657
43658
43659
43660
43661
43662
43663
43664
43665
43666
43667
43668
43669
43670
43671
43672
43673
43674
43675
43676
43677
# File 'ext/cntk/cntk_wrap.cxx', line 43618

SWIGINTERN VALUE _wrap___ndcgat1__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___ndcgat1____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___ndcgat1____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__ndcgat1__", 
    "    CNTK::FunctionPtr __ndcgat1__(CNTK::Variable const &prediction, CNTK::Variable const &gains, CNTK::Variable const &groupId, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __ndcgat1__(CNTK::Variable const &prediction, CNTK::Variable const &gains, CNTK::Variable const &groupId)\n");
  
  return Qnil;
}

.__negate__(*args, self) ⇒ Object



34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
# File 'ext/cntk/cntk_wrap.cxx', line 34442

SWIGINTERN VALUE _wrap___negate__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___negate____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___negate____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__negate__", 
    "    CNTK::FunctionPtr __negate__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __negate__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__nesterov_learner__(*args, self) ⇒ Object



56739
56740
56741
56742
56743
56744
56745
56746
56747
56748
56749
56750
56751
56752
56753
56754
56755
56756
56757
56758
56759
56760
56761
56762
56763
56764
56765
56766
56767
56768
56769
56770
56771
56772
56773
56774
56775
56776
56777
56778
56779
56780
56781
56782
56783
56784
56785
56786
56787
56788
56789
56790
56791
56792
56793
56794
56795
56796
56797
56798
56799
56800
56801
56802
56803
56804
56805
56806
56807
56808
56809
56810
56811
56812
56813
56814
56815
56816
56817
56818
56819
56820
56821
56822
56823
56824
56825
56826
56827
56828
# File 'ext/cntk/cntk_wrap.cxx', line 56739

SWIGINTERN VALUE _wrap___nesterov_learner__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs;
  if (argc > 5) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___nesterov_learner____SWIG_2(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___nesterov_learner____SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__MomentumSchedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CNTK__AdditionalLearningOptions, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___nesterov_learner____SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "__nesterov_learner__", 
    "    CNTK::LearnerPtr __nesterov_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule, bool unitGain, CNTK::AdditionalLearningOptions additionalOptions)\n"
    "    CNTK::LearnerPtr __nesterov_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule, bool unitGain)\n"
    "    CNTK::LearnerPtr __nesterov_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::MomentumSchedule const &momentumSchedule)\n");
  
  return Qnil;
}

.__normal_initializer__(*args, self) ⇒ Object



25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
# File 'ext/cntk/cntk_wrap.cxx', line 25933

SWIGINTERN VALUE _wrap___normal_initializer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap___normal_initializer____SWIG_3(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___normal_initializer____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___normal_initializer____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_long(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___normal_initializer____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__normal_initializer__", 
    "    CNTK::Dictionary __normal_initializer__(double scale, int outputRank, int filterRank, unsigned long seed)\n"
    "    CNTK::Dictionary __normal_initializer__(double scale, int outputRank, int filterRank)\n"
    "    CNTK::Dictionary __normal_initializer__(double scale, int outputRank)\n"
    "    CNTK::Dictionary __normal_initializer__(double scale)\n");
  
  return Qnil;
}

.__not_equal__(*args, self) ⇒ Object



39453
39454
39455
39456
39457
39458
39459
39460
39461
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474
39475
39476
39477
39478
39479
39480
39481
39482
39483
39484
39485
39486
39487
39488
39489
39490
39491
39492
39493
39494
39495
39496
39497
39498
39499
39500
39501
39502
# File 'ext/cntk/cntk_wrap.cxx', line 39453

SWIGINTERN VALUE _wrap___not_equal__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___not_equal____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___not_equal____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__not_equal__", 
    "    CNTK::FunctionPtr __not_equal__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __not_equal__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__optimized_rnnstack__(*args, self) ⇒ Object



51005
51006
51007
51008
51009
51010
51011
51012
51013
51014
51015
51016
51017
51018
51019
51020
51021
51022
51023
51024
51025
51026
51027
51028
51029
51030
51031
51032
51033
51034
51035
51036
51037
51038
51039
51040
51041
51042
51043
51044
51045
51046
51047
51048
51049
51050
51051
51052
51053
51054
51055
51056
51057
51058
51059
51060
51061
51062
51063
51064
51065
51066
51067
51068
51069
51070
51071
51072
51073
51074
51075
51076
51077
51078
51079
51080
51081
51082
51083
51084
51085
51086
51087
51088
51089
51090
51091
51092
51093
51094
51095
51096
51097
51098
51099
51100
51101
51102
51103
51104
51105
51106
51107
51108
51109
51110
51111
51112
51113
51114
51115
51116
51117
51118
51119
51120
51121
51122
51123
51124
51125
51126
51127
51128
51129
51130
51131
51132
51133
51134
51135
51136
51137
51138
51139
51140
51141
51142
51143
51144
51145
51146
51147
51148
51149
51150
51151
51152
51153
51154
51155
51156
51157
51158
# File 'ext/cntk/cntk_wrap.cxx', line 51005

SWIGINTERN VALUE _wrap___optimized_rnnstack__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[7];
  int ii;
  
  argc = nargs;
  if (argc > 7) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_size_t(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___optimized_rnnstack____SWIG_3(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_size_t(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap___optimized_rnnstack____SWIG_2(nargs, args, self);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_size_t(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap___optimized_rnnstack____SWIG_1(nargs, args, self);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_size_t(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_AsPtr_std_wstring(argv[5], (std::wstring**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_AsPtr_std_wstring(argv[6], (std::wstring**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap___optimized_rnnstack____SWIG_0(nargs, args, self);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 7, "__optimized_rnnstack__", 
    "    CNTK::FunctionPtr __optimized_rnnstack__(CNTK::Variable const &operand, CNTK::Variable const &weights, size_t hiddenSize, size_t numLayers, bool bidirectional, std::wstring const &recurrentOp, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __optimized_rnnstack__(CNTK::Variable const &operand, CNTK::Variable const &weights, size_t hiddenSize, size_t numLayers, bool bidirectional, std::wstring const &recurrentOp)\n"
    "    CNTK::FunctionPtr __optimized_rnnstack__(CNTK::Variable const &operand, CNTK::Variable const &weights, size_t hiddenSize, size_t numLayers, bool bidirectional)\n"
    "    CNTK::FunctionPtr __optimized_rnnstack__(CNTK::Variable const &operand, CNTK::Variable const &weights, size_t hiddenSize, size_t numLayers)\n");
  
  return Qnil;
}

.__output_variable__(*args) ⇒ Object



25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
# File 'ext/cntk/cntk_wrap.cxx', line 25354

SWIGINTERN VALUE
_wrap___output_variable__(int argc, VALUE *argv, VALUE self) {
  CNTK::NDShape *arg1 = 0 ;
  enum CNTK::DataType arg2 ;
  std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > *arg3 = 0 ;
  std::wstring *arg4 = 0 ;
  CNTK::NDShape tmp1 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  SwigValueWrapper< CNTK::Variable > result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    VALUE arry = rb_check_array_type(argv[0]);
    if(NIL_P(arry)) {
      rb_raise(rb_eArgError, "Array expected"); SWIG_fail;
    }else{
      size_t rank = RARRAY_LEN(arry);
      std::vector<size_t> dimensions(rank);
      for (int i=0; i < rank; i++) {
        VALUE elt = RARRAY_AREF(arry, i);
        dimensions[rank-i-1] = NUM2SIZET(elt);
      }
      tmp1 = CNTK::NDShape(dimensions);
      arg1 = &tmp1;
    }
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "enum CNTK::DataType","CNTK::OutputVariable", 2, argv[1] ));
  } 
  arg2 = static_cast< enum CNTK::DataType >(val2);
  {
    std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > *ptr = (std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > *)0;
    res3 = swig::asptr(argv[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > const &","CNTK::OutputVariable", 3, argv[2] )); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > const &","CNTK::OutputVariable", 3, argv[2])); 
    }
    arg3 = ptr;
  }
  {
    std::wstring *ptr = (std::wstring *)0;
    res4 = SWIG_AsPtr_std_wstring(argv[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "std::wstring const &","CNTK::OutputVariable", 4, argv[3] )); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::wstring const &","CNTK::OutputVariable", 4, argv[3])); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = CNTK::OutputVariable((CNTK::NDShape const &)*arg1,arg2,(std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > const &)*arg3,(std::wstring const &)*arg4); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_NewPointerObj((new CNTK::Variable(static_cast< const CNTK::Variable& >(result))), SWIGTYPE_p_CNTK__Variable, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return vresult;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return Qnil;
}

.__past_value__(*args, self) ⇒ Object



44051
44052
44053
44054
44055
44056
44057
44058
44059
44060
44061
44062
44063
44064
44065
44066
44067
44068
44069
44070
44071
44072
44073
44074
44075
44076
44077
44078
44079
44080
44081
44082
44083
44084
44085
44086
44087
44088
44089
44090
44091
44092
44093
44094
44095
44096
44097
44098
44099
44100
44101
44102
44103
44104
44105
44106
44107
44108
44109
44110
44111
44112
44113
44114
44115
44116
44117
44118
44119
44120
44121
44122
44123
44124
44125
44126
44127
44128
44129
44130
44131
44132
44133
44134
44135
44136
44137
44138
44139
44140
44141
44142
44143
44144
44145
44146
44147
44148
44149
44150
44151
44152
44153
44154
44155
44156
44157
44158
44159
44160
44161
44162
44163
44164
44165
44166
44167
44168
44169
44170
44171
44172
44173
# File 'ext/cntk/cntk_wrap.cxx', line 44051

SWIGINTERN VALUE _wrap___past_value__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___past_value____SWIG_5(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___past_value____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___past_value____SWIG_4(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___past_value____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___past_value____SWIG_3(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___past_value____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__past_value__", 
    "    CNTK::FunctionPtr __past_value__(CNTK::Variable const &operand, CNTK::Variable const &initialState, size_t offset, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __past_value__(CNTK::Variable const &operand, CNTK::Variable const &initialState, size_t offset)\n"
    "    CNTK::FunctionPtr __past_value__(CNTK::Variable const &operand, CNTK::Variable const &initialState)\n"
    "    CNTK::FunctionPtr __past_value__(CNTK::Variable const &operand, size_t offset, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __past_value__(CNTK::Variable const &operand, size_t offset)\n"
    "    CNTK::FunctionPtr __past_value__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__per_dim_mean_variance_normalize__(*args, self) ⇒ Object



45895
45896
45897
45898
45899
45900
45901
45902
45903
45904
45905
45906
45907
45908
45909
45910
45911
45912
45913
45914
45915
45916
45917
45918
45919
45920
45921
45922
45923
45924
45925
45926
45927
45928
45929
45930
45931
45932
45933
45934
45935
45936
45937
45938
45939
45940
45941
45942
45943
45944
45945
45946
45947
45948
45949
45950
# File 'ext/cntk/cntk_wrap.cxx', line 45895

SWIGINTERN VALUE _wrap___per_dim_mean_variance_normalize__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___per_dim_mean_variance_normalize____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_CNTK__NDArrayView_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___per_dim_mean_variance_normalize____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__per_dim_mean_variance_normalize__", 
    "    CNTK::FunctionPtr __per_dim_mean_variance_normalize__(CNTK::Variable const &operand, CNTK::NDArrayViewPtr const &mean, CNTK::NDArrayViewPtr const &invStdDev, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __per_dim_mean_variance_normalize__(CNTK::Variable const &operand, CNTK::NDArrayViewPtr const &mean, CNTK::NDArrayViewPtr const &invStdDev)\n");
  
  return Qnil;
}

.__placeholder_variable__(*args) ⇒ Object



24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
# File 'ext/cntk/cntk_wrap.cxx', line 24994

SWIGINTERN VALUE
_wrap___placeholder_variable__(int argc, VALUE *argv, VALUE self) {
  CNTK::NDShape *arg1 = 0 ;
  std::wstring *arg2 = 0 ;
  std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > *arg3 = 0 ;
  CNTK::NDShape tmp1 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  SwigValueWrapper< CNTK::Variable > result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  {
    VALUE arry = rb_check_array_type(argv[0]);
    if(NIL_P(arry)) {
      rb_raise(rb_eArgError, "Array expected"); SWIG_fail;
    }else{
      size_t rank = RARRAY_LEN(arry);
      std::vector<size_t> dimensions(rank);
      for (int i=0; i < rank; i++) {
        VALUE elt = RARRAY_AREF(arry, i);
        dimensions[rank-i-1] = NUM2SIZET(elt);
      }
      tmp1 = CNTK::NDShape(dimensions);
      arg1 = &tmp1;
    }
  }
  {
    std::wstring *ptr = (std::wstring *)0;
    res2 = SWIG_AsPtr_std_wstring(argv[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::wstring const &","CNTK::PlaceholderVariable", 2, argv[1] )); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::wstring const &","CNTK::PlaceholderVariable", 2, argv[1])); 
    }
    arg2 = ptr;
  }
  {
    std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > *ptr = (std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > *)0;
    res3 = swig::asptr(argv[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > const &","CNTK::PlaceholderVariable", 3, argv[2] )); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > const &","CNTK::PlaceholderVariable", 3, argv[2])); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = CNTK::PlaceholderVariable((CNTK::NDShape const &)*arg1,(std::wstring const &)*arg2,(std::vector< CNTK::Axis,std::allocator< CNTK::Axis > > const &)*arg3); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_NewPointerObj((new CNTK::Variable(static_cast< const CNTK::Variable& >(result))), SWIGTYPE_p_CNTK__Variable, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  return vresult;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  return Qnil;
}

.__plus__(*args, self) ⇒ Object



38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383
38384
38385
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413
38414
38415
38416
# File 'ext/cntk/cntk_wrap.cxx', line 38367

SWIGINTERN VALUE _wrap___plus__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___plus____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___plus____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__plus__", 
    "    CNTK::FunctionPtr __plus__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __plus__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__pooling__(*args, self) ⇒ Object



48192
48193
48194
48195
48196
48197
48198
48199
48200
48201
48202
48203
48204
48205
48206
48207
48208
48209
48210
48211
48212
48213
48214
48215
48216
48217
48218
48219
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229
48230
48231
48232
48233
48234
48235
48236
48237
48238
48239
48240
48241
48242
48243
48244
48245
48246
48247
48248
48249
48250
48251
48252
48253
48254
48255
48256
48257
48258
48259
48260
48261
48262
48263
48264
48265
48266
48267
48268
48269
48270
48271
48272
48273
48274
48275
48276
48277
48278
48279
48280
48281
48282
48283
48284
48285
48286
48287
48288
48289
48290
48291
48292
48293
48294
48295
48296
48297
48298
48299
48300
48301
48302
48303
48304
48305
48306
48307
48308
48309
48310
48311
48312
48313
48314
48315
48316
48317
48318
48319
48320
48321
48322
48323
48324
48325
48326
48327
48328
48329
48330
48331
48332
48333
48334
48335
48336
48337
48338
48339
48340
48341
48342
48343
48344
48345
48346
48347
48348
48349
48350
48351
48352
48353
48354
48355
48356
48357
48358
48359
48360
48361
48362
48363
48364
48365
48366
48367
48368
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378
48379
48380
48381
48382
48383
48384
48385
48386
48387
48388
48389
48390
48391
48392
48393
48394
48395
48396
48397
48398
48399
48400
48401
48402
48403
48404
48405
48406
48407
48408
48409
48410
48411
48412
48413
48414
48415
48416
48417
48418
48419
48420
48421
48422
48423
48424
48425
48426
48427
48428
48429
48430
48431
48432
48433
48434
48435
48436
48437
48438
48439
48440
48441
48442
48443
48444
48445
48446
48447
48448
48449
48450
48451
48452
48453
48454
48455
48456
48457
48458
48459
48460
48461
48462
48463
48464
48465
48466
48467
48468
48469
48470
48471
48472
48473
48474
48475
48476
48477
48478
48479
48480
48481
48482
48483
48484
48485
48486
48487
48488
48489
48490
48491
48492
48493
48494
48495
# File 'ext/cntk/cntk_wrap.cxx', line 48192

SWIGINTERN VALUE _wrap___pooling__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[9];
  int ii;
  
  argc = nargs;
  if (argc > 9) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          return _wrap___pooling____SWIG_6(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            return _wrap___pooling____SWIG_5(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___pooling____SWIG_4(nargs, args, self);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                // '1000' is the typecheck precedence code. It means: check after basic
                // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                _v = NIL_P(rb_check_array_type(argv[5])) ? 0 : 1;
              }
              if (_v) {
                return _wrap___pooling____SWIG_3(nargs, args, self);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                // '1000' is the typecheck precedence code. It means: check after basic
                // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                _v = NIL_P(rb_check_array_type(argv[5])) ? 0 : 1;
              }
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  return _wrap___pooling____SWIG_2(nargs, args, self);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                // '1000' is the typecheck precedence code. It means: check after basic
                // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                _v = NIL_P(rb_check_array_type(argv[5])) ? 0 : 1;
              }
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap___pooling____SWIG_1(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector<bool,std::allocator< bool > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                // '1000' is the typecheck precedence code. It means: check after basic
                // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                _v = NIL_P(rb_check_array_type(argv[5])) ? 0 : 1;
              }
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_AsPtr_std_wstring(argv[8], (std::wstring**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap___pooling____SWIG_0(nargs, args, self);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 9, "__pooling__", 
    "    CNTK::FunctionPtr __pooling__(CNTK::Variable const &operand, CNTK::PoolingType poolingType, CNTK::NDShape const &poolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad, CNTK::NDShape const &upperPad, bool const ceilOutDim, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __pooling__(CNTK::Variable const &operand, CNTK::PoolingType poolingType, CNTK::NDShape const &poolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad, CNTK::NDShape const &upperPad, bool const ceilOutDim)\n"
    "    CNTK::FunctionPtr __pooling__(CNTK::Variable const &operand, CNTK::PoolingType poolingType, CNTK::NDShape const &poolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad, CNTK::NDShape const &upperPad)\n"
    "    CNTK::FunctionPtr __pooling__(CNTK::Variable const &operand, CNTK::PoolingType poolingType, CNTK::NDShape const &poolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad)\n"
    "    CNTK::FunctionPtr __pooling__(CNTK::Variable const &operand, CNTK::PoolingType poolingType, CNTK::NDShape const &poolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding)\n"
    "    CNTK::FunctionPtr __pooling__(CNTK::Variable const &operand, CNTK::PoolingType poolingType, CNTK::NDShape const &poolingWindowShape, CNTK::NDShape const &strides)\n"
    "    CNTK::FunctionPtr __pooling__(CNTK::Variable const &operand, CNTK::PoolingType poolingType, CNTK::NDShape const &poolingWindowShape)\n");
  
  return Qnil;
}

.__quantized_mpicommunicator__(*args) ⇒ Object



63992
63993
63994
63995
63996
63997
63998
63999
64000
64001
64002
64003
64004
64005
64006
64007
64008
64009
64010
64011
64012
64013
64014
64015
64016
64017
64018
64019
64020
64021
64022
64023
64024
64025
64026
64027
64028
64029
64030
64031
64032
64033
64034
64035
64036
64037
64038
64039
64040
64041
64042
64043
64044
64045
64046
64047
64048
# File 'ext/cntk/cntk_wrap.cxx', line 63992

SWIGINTERN VALUE
_wrap___quantized_mpicommunicator__(int argc, VALUE *argv, VALUE self) {
  bool arg1 ;
  bool arg2 ;
  size_t arg3 ;
  bool val1 ;
  int ecode1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  CNTK::QuantizedDistributedCommunicatorPtr result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_bool(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","CNTK::QuantizedMPICommunicator", 1, argv[0] ));
  } 
  arg1 = static_cast< bool >(val1);
  ecode2 = SWIG_AsVal_bool(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","CNTK::QuantizedMPICommunicator", 2, argv[1] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","CNTK::QuantizedMPICommunicator", 3, argv[2] ));
  } 
  arg3 = static_cast< size_t >(val3);
  {
    try {
      result = CNTK::QuantizedMPICommunicator(arg1,arg2,arg3); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  {
    std::shared_ptr<  CNTK::QuantizedDistributedCommunicator > *smartresult = result ? new std::shared_ptr<  CNTK::QuantizedDistributedCommunicator >(result) : 0;
    vresult = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_CNTK__QuantizedDistributedCommunicator_t, SWIG_POINTER_OWN);
  }
  return vresult;
fail:
  return Qnil;
}

.__random_initializer_with_rank__(*args) ⇒ Object



27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
# File 'ext/cntk/cntk_wrap.cxx', line 27789

SWIGINTERN VALUE
_wrap___random_initializer_with_rank__(int argc, VALUE *argv, VALUE self) {
  CNTK::Dictionary *arg1 = 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  CNTK::Dictionary result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CNTK__Dictionary,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::Dictionary const &","CNTK::RandomInitializerWithRank", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "CNTK::Dictionary const &","CNTK::RandomInitializerWithRank", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< CNTK::Dictionary * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","CNTK::RandomInitializerWithRank", 2, argv[1] ));
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","CNTK::RandomInitializerWithRank", 3, argv[2] ));
  } 
  arg3 = static_cast< int >(val3);
  {
    try {
      result = CNTK::RandomInitializerWithRank((CNTK::Dictionary const &)*arg1,arg2,arg3); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_NewPointerObj((new CNTK::Dictionary(static_cast< const CNTK::Dictionary& >(result))), SWIGTYPE_p_CNTK__Dictionary, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

.__random_sample__(*args) ⇒ Object



37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497
37498
37499
37500
37501
37502
37503
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
# File 'ext/cntk/cntk_wrap.cxx', line 37467

SWIGINTERN VALUE
_wrap___random_sample__(int argc, VALUE *argv, VALUE self) {
  CNTK::Variable *arg1 = 0 ;
  size_t arg2 ;
  bool arg3 ;
  std::wstring *arg4 = 0 ;
  void *argp1 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  CNTK::FunctionPtr result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CNTK__Variable,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::Variable const &","CNTK::RandomSample", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "CNTK::Variable const &","CNTK::RandomSample", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< CNTK::Variable * >(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","CNTK::RandomSample", 2, argv[1] ));
  } 
  arg2 = static_cast< size_t >(val2);
  ecode3 = SWIG_AsVal_bool(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","CNTK::RandomSample", 3, argv[2] ));
  } 
  arg3 = static_cast< bool >(val3);
  {
    std::wstring *ptr = (std::wstring *)0;
    res4 = SWIG_AsPtr_std_wstring(argv[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "std::wstring const &","CNTK::RandomSample", 4, argv[3] )); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::wstring const &","CNTK::RandomSample", 4, argv[3])); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = CNTK::RandomSample((CNTK::Variable const &)*arg1,arg2,arg3,(std::wstring const &)*arg4); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  {
    std::shared_ptr<  CNTK::Function > *smartresult = result ? new std::shared_ptr<  CNTK::Function >(result) : 0;
    vresult = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, SWIG_POINTER_OWN);
  }
  if (SWIG_IsNewObj(res4)) delete arg4;
  return vresult;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return Qnil;
}

.__random_sample_inclusion_frequency__(*args) ⇒ Object



37544
37545
37546
37547
37548
37549
37550
37551
37552
37553
37554
37555
37556
37557
37558
37559
37560
37561
37562
37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617
37618
# File 'ext/cntk/cntk_wrap.cxx', line 37544

SWIGINTERN VALUE
_wrap___random_sample_inclusion_frequency__(int argc, VALUE *argv, VALUE self) {
  CNTK::Variable *arg1 = 0 ;
  size_t arg2 ;
  bool arg3 ;
  std::wstring *arg4 = 0 ;
  void *argp1 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  CNTK::FunctionPtr result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CNTK__Variable,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::Variable const &","CNTK::RandomSampleInclusionFrequency", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "CNTK::Variable const &","CNTK::RandomSampleInclusionFrequency", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< CNTK::Variable * >(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","CNTK::RandomSampleInclusionFrequency", 2, argv[1] ));
  } 
  arg2 = static_cast< size_t >(val2);
  ecode3 = SWIG_AsVal_bool(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","CNTK::RandomSampleInclusionFrequency", 3, argv[2] ));
  } 
  arg3 = static_cast< bool >(val3);
  {
    std::wstring *ptr = (std::wstring *)0;
    res4 = SWIG_AsPtr_std_wstring(argv[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "std::wstring const &","CNTK::RandomSampleInclusionFrequency", 4, argv[3] )); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::wstring const &","CNTK::RandomSampleInclusionFrequency", 4, argv[3])); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = CNTK::RandomSampleInclusionFrequency((CNTK::Variable const &)*arg1,arg2,arg3,(std::wstring const &)*arg4); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  {
    std::shared_ptr<  CNTK::Function > *smartresult = result ? new std::shared_ptr<  CNTK::Function >(result) : 0;
    vresult = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_CNTK__Function_t, SWIG_POINTER_OWN);
  }
  if (SWIG_IsNewObj(res4)) delete arg4;
  return vresult;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return Qnil;
}

.__re_lu__(*args, self) ⇒ Object



35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
# File 'ext/cntk/cntk_wrap.cxx', line 35187

SWIGINTERN VALUE _wrap___re_lu__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___re_lu____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___re_lu____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__re_lu__", 
    "    CNTK::FunctionPtr __re_lu__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __re_lu__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__reciprocal__(*args, self) ⇒ Object



36528
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554
36555
36556
36557
36558
36559
36560
36561
36562
36563
36564
36565
36566
36567
# File 'ext/cntk/cntk_wrap.cxx', line 36528

SWIGINTERN VALUE _wrap___reciprocal__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___reciprocal____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___reciprocal____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__reciprocal__", 
    "    CNTK::FunctionPtr __reciprocal__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reciprocal__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__reduce_log_sum__(*args, self) ⇒ Object



45113
45114
45115
45116
45117
45118
45119
45120
45121
45122
45123
45124
45125
45126
45127
45128
45129
45130
45131
45132
45133
45134
45135
45136
45137
45138
45139
45140
45141
45142
45143
45144
45145
45146
45147
45148
45149
45150
45151
45152
45153
45154
45155
45156
45157
45158
45159
45160
45161
45162
# File 'ext/cntk/cntk_wrap.cxx', line 45113

SWIGINTERN VALUE _wrap___reduce_log_sum__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___reduce_log_sum____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___reduce_log_sum____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__reduce_log_sum__", 
    "    CNTK::FunctionPtr __reduce_log_sum__(CNTK::Variable const &operand, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reduce_log_sum__(CNTK::Variable const &operand, CNTK::Axis const &axis)\n");
  
  return Qnil;
}

.__reduce_max__(*args, self) ⇒ Object



45475
45476
45477
45478
45479
45480
45481
45482
45483
45484
45485
45486
45487
45488
45489
45490
45491
45492
45493
45494
45495
45496
45497
45498
45499
45500
45501
45502
45503
45504
45505
45506
45507
45508
45509
45510
45511
45512
45513
45514
45515
45516
45517
45518
45519
45520
45521
45522
45523
45524
# File 'ext/cntk/cntk_wrap.cxx', line 45475

SWIGINTERN VALUE _wrap___reduce_max__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___reduce_max____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___reduce_max____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__reduce_max__", 
    "    CNTK::FunctionPtr __reduce_max__(CNTK::Variable const &operand, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reduce_max__(CNTK::Variable const &operand, CNTK::Axis const &axis)\n");
  
  return Qnil;
}

.__reduce_mean__(*args, self) ⇒ Object



45294
45295
45296
45297
45298
45299
45300
45301
45302
45303
45304
45305
45306
45307
45308
45309
45310
45311
45312
45313
45314
45315
45316
45317
45318
45319
45320
45321
45322
45323
45324
45325
45326
45327
45328
45329
45330
45331
45332
45333
45334
45335
45336
45337
45338
45339
45340
45341
45342
45343
# File 'ext/cntk/cntk_wrap.cxx', line 45294

SWIGINTERN VALUE _wrap___reduce_mean__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___reduce_mean____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___reduce_mean____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__reduce_mean__", 
    "    CNTK::FunctionPtr __reduce_mean__(CNTK::Variable const &operand, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reduce_mean__(CNTK::Variable const &operand, CNTK::Axis const &axis)\n");
  
  return Qnil;
}

.__reduce_min__(*args, self) ⇒ Object



45656
45657
45658
45659
45660
45661
45662
45663
45664
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
45684
45685
45686
45687
45688
45689
45690
45691
45692
45693
45694
45695
45696
45697
45698
45699
45700
45701
45702
45703
45704
45705
# File 'ext/cntk/cntk_wrap.cxx', line 45656

SWIGINTERN VALUE _wrap___reduce_min__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___reduce_min____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___reduce_min____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__reduce_min__", 
    "    CNTK::FunctionPtr __reduce_min__(CNTK::Variable const &operand, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reduce_min__(CNTK::Variable const &operand, CNTK::Axis const &axis)\n");
  
  return Qnil;
}

.__reduce_sum__(*args, self) ⇒ Object



44908
44909
44910
44911
44912
44913
44914
44915
44916
44917
44918
44919
44920
44921
44922
44923
44924
44925
44926
44927
44928
44929
44930
44931
44932
44933
44934
44935
44936
44937
44938
44939
44940
44941
44942
44943
44944
44945
44946
44947
44948
44949
44950
44951
44952
44953
44954
44955
44956
44957
44958
44959
44960
44961
44962
44963
44964
44965
44966
44967
44968
44969
44970
44971
44972
44973
44974
44975
44976
44977
44978
44979
44980
44981
# File 'ext/cntk/cntk_wrap.cxx', line 44908

SWIGINTERN VALUE _wrap___reduce_sum__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___reduce_sum____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___reduce_sum____SWIG_3(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___reduce_sum____SWIG_0(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___reduce_sum____SWIG_2(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__reduce_sum__", 
    "    CNTK::FunctionPtr __reduce_sum__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reduce_sum__(CNTK::Variable const &operand)\n"
    "    CNTK::FunctionPtr __reduce_sum__(CNTK::Variable const &operand, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reduce_sum__(CNTK::Variable const &operand, CNTK::Axis const &axis)\n");
  
  return Qnil;
}

.__reshape__(*args, self) ⇒ Object



38124
38125
38126
38127
38128
38129
38130
38131
38132
38133
38134
38135
38136
38137
38138
38139
38140
38141
38142
38143
38144
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187
38188
38189
38190
38191
38192
38193
38194
38195
38196
38197
38198
38199
38200
38201
38202
38203
38204
38205
38206
38207
38208
38209
38210
38211
38212
38213
38214
38215
38216
38217
38218
38219
38220
38221
38222
38223
38224
38225
38226
38227
38228
38229
38230
38231
38232
38233
38234
38235
# File 'ext/cntk/cntk_wrap.cxx', line 38124

SWIGINTERN VALUE _wrap___reshape__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs;
  if (argc > 5) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        // '1000' is the typecheck precedence code. It means: check after basic
        // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
        _v = NIL_P(rb_check_array_type(argv[1])) ? 0 : 1;
      }
      if (_v) {
        return _wrap___reshape____SWIG_3(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        // '1000' is the typecheck precedence code. It means: check after basic
        // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
        _v = NIL_P(rb_check_array_type(argv[1])) ? 0 : 1;
      }
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___reshape____SWIG_2(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        // '1000' is the typecheck precedence code. It means: check after basic
        // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
        _v = NIL_P(rb_check_array_type(argv[1])) ? 0 : 1;
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___reshape____SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        // '1000' is the typecheck precedence code. It means: check after basic
        // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
        _v = NIL_P(rb_check_array_type(argv[1])) ? 0 : 1;
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_AsPtr_std_wstring(argv[4], (std::wstring**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___reshape____SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "__reshape__", 
    "    CNTK::FunctionPtr __reshape__(CNTK::Variable const &operand, CNTK::NDShape const &replacementShape, CNTK::Axis const &beginAxis, CNTK::Axis const &endAxis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reshape__(CNTK::Variable const &operand, CNTK::NDShape const &replacementShape, CNTK::Axis const &beginAxis, CNTK::Axis const &endAxis)\n"
    "    CNTK::FunctionPtr __reshape__(CNTK::Variable const &operand, CNTK::NDShape const &newShape, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __reshape__(CNTK::Variable const &operand, CNTK::NDShape const &newShape)\n");
  
  return Qnil;
}

.__rmsprop_learner__(*args, self) ⇒ Object



57668
57669
57670
57671
57672
57673
57674
57675
57676
57677
57678
57679
57680
57681
57682
57683
57684
57685
57686
57687
57688
57689
57690
57691
57692
57693
57694
57695
57696
57697
57698
57699
57700
57701
57702
57703
57704
57705
57706
57707
57708
57709
57710
57711
57712
57713
57714
57715
57716
57717
57718
57719
57720
57721
57722
57723
57724
57725
57726
57727
57728
57729
57730
57731
57732
57733
57734
57735
57736
57737
57738
57739
57740
57741
57742
57743
57744
57745
57746
57747
57748
57749
57750
57751
57752
57753
57754
57755
57756
57757
57758
57759
57760
57761
57762
57763
57764
57765
57766
57767
57768
57769
57770
57771
57772
57773
57774
57775
57776
57777
57778
57779
57780
57781
57782
57783
57784
57785
57786
57787
57788
57789
57790
57791
57792
57793
57794
57795
57796
57797
57798
57799
57800
57801
57802
57803
57804
57805
57806
57807
57808
57809
57810
57811
57812
57813
57814
57815
57816
57817
57818
57819
57820
57821
57822
57823
57824
57825
57826
57827
57828
57829
57830
57831
57832
# File 'ext/cntk/cntk_wrap.cxx', line 57668

SWIGINTERN VALUE _wrap___rmsprop_learner__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[9];
  int ii;
  
  argc = nargs;
  if (argc > 9) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap___rmsprop_learner____SWIG_2(nargs, args, self);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap___rmsprop_learner____SWIG_1(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    void *vptr = 0;
                    int res = SWIG_ConvertPtr(argv[8], &vptr, SWIGTYPE_p_CNTK__AdditionalLearningOptions, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap___rmsprop_learner____SWIG_0(nargs, args, self);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 9, "__rmsprop_learner__", 
    "    CNTK::LearnerPtr __rmsprop_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, double gamma, double inc, double dec, double max, double min, bool needAveMultiplier, CNTK::AdditionalLearningOptions additionalOptions)\n"
    "    CNTK::LearnerPtr __rmsprop_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, double gamma, double inc, double dec, double max, double min, bool needAveMultiplier)\n"
    "    CNTK::LearnerPtr __rmsprop_learner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, double gamma, double inc, double dec, double max, double min)\n");
  
  return Qnil;
}

.__roipooling__(*args, self) ⇒ Object



47302
47303
47304
47305
47306
47307
47308
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318
47319
47320
47321
47322
47323
47324
47325
47326
47327
47328
47329
47330
47331
47332
47333
47334
47335
47336
47337
47338
47339
47340
47341
47342
47343
47344
47345
47346
47347
47348
47349
47350
47351
47352
47353
47354
47355
47356
47357
47358
47359
47360
47361
47362
47363
47364
47365
# File 'ext/cntk/cntk_wrap.cxx', line 47302

SWIGINTERN VALUE _wrap___roipooling__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          return _wrap___roipooling____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          // '1000' is the typecheck precedence code. It means: check after basic
          // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
          _v = NIL_P(rb_check_array_type(argv[2])) ? 0 : 1;
        }
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___roipooling____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__roipooling__", 
    "    CNTK::FunctionPtr __roipooling__(CNTK::Variable const &convolutionMap, CNTK::Variable const &rois, CNTK::NDShape const &roiOutputShape, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __roipooling__(CNTK::Variable const &convolutionMap, CNTK::Variable const &rois, CNTK::NDShape const &roiOutputShape)\n");
  
  return Qnil;
}

.__round__(*args, self) ⇒ Object



35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
# File 'ext/cntk/cntk_wrap.cxx', line 35932

SWIGINTERN VALUE _wrap___round__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___round____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___round____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__round__", 
    "    CNTK::FunctionPtr __round__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __round__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__scatter__(*args, self) ⇒ Object



53358
53359
53360
53361
53362
53363
53364
53365
53366
53367
53368
53369
53370
53371
53372
53373
53374
53375
53376
53377
53378
53379
53380
53381
53382
53383
53384
53385
53386
53387
53388
53389
53390
53391
53392
53393
53394
53395
53396
53397
53398
53399
53400
53401
53402
53403
53404
53405
53406
53407
# File 'ext/cntk/cntk_wrap.cxx', line 53358

SWIGINTERN VALUE _wrap___scatter__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___scatter____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___scatter____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__scatter__", 
    "    CNTK::FunctionPtr __scatter__(CNTK::Variable const &operand, CNTK::Variable const &condition, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __scatter__(CNTK::Variable const &operand, CNTK::Variable const &condition)\n");
  
  return Qnil;
}

.__set_max_num_cputhreads__(*args) ⇒ Object



68217
68218
68219
68220
68221
68222
68223
68224
68225
68226
68227
68228
68229
68230
68231
68232
68233
68234
68235
68236
68237
68238
68239
68240
68241
68242
68243
68244
68245
68246
68247
68248
68249
68250
68251
# File 'ext/cntk/cntk_wrap.cxx', line 68217

SWIGINTERN VALUE
_wrap___set_max_num_cputhreads__(int argc, VALUE *argv, VALUE self) {
  size_t arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_size_t(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","CNTK::SetMaxNumCPUThreads", 1, argv[0] ));
  } 
  arg1 = static_cast< size_t >(val1);
  {
    try {
      CNTK::SetMaxNumCPUThreads(arg1); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  return Qnil;
fail:
  return Qnil;
}

.__sgdlearner__(*args, self) ⇒ Object



56104
56105
56106
56107
56108
56109
56110
56111
56112
56113
56114
56115
56116
56117
56118
56119
56120
56121
56122
56123
56124
56125
56126
56127
56128
56129
56130
56131
56132
56133
56134
56135
56136
56137
56138
56139
56140
56141
56142
56143
56144
56145
56146
56147
56148
56149
56150
56151
56152
# File 'ext/cntk/cntk_wrap.cxx', line 56104

SWIGINTERN VALUE _wrap___sgdlearner__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___sgdlearner____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__TrainingParameterScheduleT_double_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__AdditionalLearningOptions, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___sgdlearner____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__sgdlearner__", 
    "    CNTK::LearnerPtr __sgdlearner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule, CNTK::AdditionalLearningOptions additionalOptions)\n"
    "    CNTK::LearnerPtr __sgdlearner__(std::vector< CNTK::Parameter,std::allocator< CNTK::Parameter > > const &parameters, CNTK::LearningRateSchedule const &learningRateSchedule)\n");
  
  return Qnil;
}

.__sigmoid__(*args, self) ⇒ Object



34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
# File 'ext/cntk/cntk_wrap.cxx', line 34591

SWIGINTERN VALUE _wrap___sigmoid__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___sigmoid____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___sigmoid____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__sigmoid__", 
    "    CNTK::FunctionPtr __sigmoid__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __sigmoid__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__sin__(*args, self) ⇒ Object



34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
# File 'ext/cntk/cntk_wrap.cxx', line 34889

SWIGINTERN VALUE _wrap___sin__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___sin____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___sin____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__sin__", 
    "    CNTK::FunctionPtr __sin__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __sin__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__slice__(*args, self) ⇒ Object



37391
37392
37393
37394
37395
37396
37397
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
37426
37427
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439
37440
37441
37442
37443
37444
37445
37446
37447
37448
37449
37450
37451
37452
37453
37454
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
# File 'ext/cntk/cntk_wrap.cxx', line 37391

SWIGINTERN VALUE _wrap___slice__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs;
  if (argc > 5) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___slice____SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_AsPtr_std_wstring(argv[4], (std::wstring**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___slice____SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "__slice__", 
    "    CNTK::FunctionPtr __slice__(CNTK::Variable const &operand, CNTK::Axis const &axis, int beginIndex, int endIndex, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __slice__(CNTK::Variable const &operand, CNTK::Axis const &axis, int beginIndex, int endIndex)\n");
  
  return Qnil;
}

.__softmax__(*args, self) ⇒ Object



36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
# File 'ext/cntk/cntk_wrap.cxx', line 36677

SWIGINTERN VALUE _wrap___softmax__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___softmax____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___softmax____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__softmax__", 
    "    CNTK::FunctionPtr __softmax__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __softmax__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__splice__(*args, self) ⇒ Object



51724
51725
51726
51727
51728
51729
51730
51731
51732
51733
51734
51735
51736
51737
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755
51756
51757
51758
51759
51760
51761
51762
51763
51764
51765
51766
51767
51768
51769
51770
51771
# File 'ext/cntk/cntk_wrap.cxx', line 51724

SWIGINTERN VALUE _wrap___splice__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Variable,std::allocator< CNTK::Variable > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___splice____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< CNTK::Variable,std::allocator< CNTK::Variable > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___splice____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__splice__", 
    "    CNTK::FunctionPtr __splice__(std::vector< CNTK::Variable,std::allocator< CNTK::Variable > > const &operands, CNTK::Axis const &axis, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __splice__(std::vector< CNTK::Variable,std::allocator< CNTK::Variable > > const &operands, CNTK::Axis const &axis)\n");
  
  return Qnil;
}

.__sqrt__(*args, self) ⇒ Object



35783
35784
35785
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
# File 'ext/cntk/cntk_wrap.cxx', line 35783

SWIGINTERN VALUE _wrap___sqrt__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___sqrt____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___sqrt____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__sqrt__", 
    "    CNTK::FunctionPtr __sqrt__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __sqrt__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__square__(*args, self) ⇒ Object



35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673
# File 'ext/cntk/cntk_wrap.cxx', line 35634

SWIGINTERN VALUE _wrap___square__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___square____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___square____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__square__", 
    "    CNTK::FunctionPtr __square__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __square__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__squared_error__(*args, self) ⇒ Object



41896
41897
41898
41899
41900
41901
41902
41903
41904
41905
41906
41907
41908
41909
41910
41911
41912
41913
41914
41915
41916
41917
41918
41919
41920
41921
41922
41923
41924
41925
41926
41927
41928
41929
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
# File 'ext/cntk/cntk_wrap.cxx', line 41896

SWIGINTERN VALUE _wrap___squared_error__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___squared_error____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___squared_error____SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__squared_error__", 
    "    CNTK::FunctionPtr __squared_error__(CNTK::Variable const &prediction, CNTK::Variable const &targets, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __squared_error__(CNTK::Variable const &prediction, CNTK::Variable const &targets)\n");
  
  return Qnil;
}

.__tanh__(*args, self) ⇒ Object



34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
# File 'ext/cntk/cntk_wrap.cxx', line 34740

SWIGINTERN VALUE _wrap___tanh__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___tanh____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___tanh____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__tanh__", 
    "    CNTK::FunctionPtr __tanh__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __tanh__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__times__(*args, self) ⇒ Object



40664
40665
40666
40667
40668
40669
40670
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710
40711
40712
40713
40714
40715
40716
40717
40718
40719
40720
40721
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
# File 'ext/cntk/cntk_wrap.cxx', line 40664

SWIGINTERN VALUE _wrap___times__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs;
  if (argc > 5) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___times____SWIG_5(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___times____SWIG_3(nargs, args, self);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___times____SWIG_4(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___times____SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___times____SWIG_2(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_AsPtr_std_wstring(argv[4], (std::wstring**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap___times____SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "__times__", 
    "    CNTK::FunctionPtr __times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, size_t outputRank, int inferInputRankToMap, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, size_t outputRank, int inferInputRankToMap)\n"
    "    CNTK::FunctionPtr __times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, size_t outputRank, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, size_t outputRank)\n"
    "    CNTK::FunctionPtr __times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__transpose__(*args, self) ⇒ Object



37188
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212
37213
37214
37215
37216
37217
37218
37219
37220
37221
37222
37223
37224
37225
37226
37227
# File 'ext/cntk/cntk_wrap.cxx', line 37188

SWIGINTERN VALUE _wrap___transpose__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___transpose____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___transpose____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__transpose__", 
    "    CNTK::FunctionPtr __transpose__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __transpose__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.__transpose_axes__(*args, self) ⇒ Object



37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
# File 'ext/cntk/cntk_wrap.cxx', line 37019

SWIGINTERN VALUE _wrap___transpose_axes__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___transpose_axes____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Axis, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___transpose_axes____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__transpose_axes__", 
    "    CNTK::FunctionPtr __transpose_axes__(CNTK::Variable const &operand, CNTK::Axis const &axis1, CNTK::Axis const &axis2, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __transpose_axes__(CNTK::Variable const &operand, CNTK::Axis const &axis1, CNTK::Axis const &axis2)\n");
  
  return Qnil;
}

.__transpose_times__(*args, self) ⇒ Object



41094
41095
41096
41097
41098
41099
41100
41101
41102
41103
41104
41105
41106
41107
41108
41109
41110
41111
41112
41113
41114
41115
41116
41117
41118
41119
41120
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130
41131
41132
41133
41134
41135
41136
41137
41138
41139
41140
41141
41142
41143
41144
41145
41146
41147
41148
41149
41150
41151
41152
41153
41154
41155
41156
41157
41158
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168
41169
41170
41171
41172
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
41185
41186
41187
41188
41189
# File 'ext/cntk/cntk_wrap.cxx', line 41094

SWIGINTERN VALUE _wrap___transpose_times__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___transpose_times____SWIG_3(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___transpose_times____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_wstring(argv[2], (std::wstring**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___transpose_times____SWIG_2(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___transpose_times____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__transpose_times__", 
    "    CNTK::FunctionPtr __transpose_times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, size_t outputRank, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __transpose_times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, size_t outputRank)\n"
    "    CNTK::FunctionPtr __transpose_times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __transpose_times__(CNTK::Variable const &leftOperand, CNTK::Variable const &rightOperand)\n");
  
  return Qnil;
}

.__uniform_initializer__(*args, self) ⇒ Object



25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
# File 'ext/cntk/cntk_wrap.cxx', line 25679

SWIGINTERN VALUE _wrap___uniform_initializer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap___uniform_initializer____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___uniform_initializer____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__uniform_initializer__", 
    "    CNTK::Dictionary __uniform_initializer__(double scale, unsigned long seed)\n"
    "    CNTK::Dictionary __uniform_initializer__(double scale)\n");
  
  return Qnil;
}

.__unpooling__(*args, self) ⇒ Object



49235
49236
49237
49238
49239
49240
49241
49242
49243
49244
49245
49246
49247
49248
49249
49250
49251
49252
49253
49254
49255
49256
49257
49258
49259
49260
49261
49262
49263
49264
49265
49266
49267
49268
49269
49270
49271
49272
49273
49274
49275
49276
49277
49278
49279
49280
49281
49282
49283
49284
49285
49286
49287
49288
49289
49290
49291
49292
49293
49294
49295
49296
49297
49298
49299
49300
49301
49302
49303
49304
49305
49306
49307
49308
49309
49310
49311
49312
49313
49314
49315
49316
49317
49318
49319
49320
49321
49322
49323
49324
49325
49326
49327
49328
49329
49330
49331
49332
49333
49334
49335
49336
49337
49338
49339
49340
49341
49342
49343
49344
49345
49346
49347
49348
49349
49350
49351
49352
49353
49354
49355
49356
49357
49358
49359
49360
49361
49362
49363
49364
49365
49366
49367
49368
49369
49370
49371
49372
49373
49374
49375
49376
49377
49378
49379
49380
49381
49382
49383
49384
49385
49386
49387
49388
49389
49390
49391
49392
49393
49394
49395
49396
49397
49398
49399
49400
49401
49402
49403
49404
49405
49406
49407
49408
49409
49410
49411
49412
49413
49414
49415
49416
49417
49418
49419
49420
49421
49422
49423
49424
49425
49426
49427
49428
49429
49430
49431
49432
49433
49434
49435
49436
49437
49438
49439
49440
49441
49442
49443
49444
49445
49446
49447
49448
49449
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462
49463
49464
49465
49466
49467
49468
49469
49470
49471
49472
49473
49474
49475
49476
49477
49478
49479
49480
49481
49482
49483
49484
49485
49486
49487
49488
49489
49490
49491
49492
49493
49494
49495
49496
49497
49498
49499
49500
49501
49502
49503
49504
49505
49506
49507
49508
# File 'ext/cntk/cntk_wrap.cxx', line 49235

SWIGINTERN VALUE _wrap___unpooling__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[9];
  int ii;
  
  argc = nargs;
  if (argc > 9) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            return _wrap___unpooling____SWIG_5(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            {
              // '1000' is the typecheck precedence code. It means: check after basic
              // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
              _v = NIL_P(rb_check_array_type(argv[4])) ? 0 : 1;
            }
            if (_v) {
              return _wrap___unpooling____SWIG_4(nargs, args, self);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            {
              // '1000' is the typecheck precedence code. It means: check after basic
              // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
              _v = NIL_P(rb_check_array_type(argv[4])) ? 0 : 1;
            }
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector<bool,std::allocator< bool > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap___unpooling____SWIG_3(nargs, args, self);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            {
              // '1000' is the typecheck precedence code. It means: check after basic
              // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
              _v = NIL_P(rb_check_array_type(argv[4])) ? 0 : 1;
            }
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector<bool,std::allocator< bool > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  return _wrap___unpooling____SWIG_2(nargs, args, self);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            {
              // '1000' is the typecheck precedence code. It means: check after basic
              // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
              _v = NIL_P(rb_check_array_type(argv[4])) ? 0 : 1;
            }
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector<bool,std::allocator< bool > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  {
                    // '1000' is the typecheck precedence code. It means: check after basic
                    // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                    _v = NIL_P(rb_check_array_type(argv[7])) ? 0 : 1;
                  }
                  if (_v) {
                    return _wrap___unpooling____SWIG_1(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            // '1000' is the typecheck precedence code. It means: check after basic
            // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
            _v = NIL_P(rb_check_array_type(argv[3])) ? 0 : 1;
          }
          if (_v) {
            {
              // '1000' is the typecheck precedence code. It means: check after basic
              // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
              _v = NIL_P(rb_check_array_type(argv[4])) ? 0 : 1;
            }
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector<bool,std::allocator< bool > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  // '1000' is the typecheck precedence code. It means: check after basic
                  // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                  _v = NIL_P(rb_check_array_type(argv[6])) ? 0 : 1;
                }
                if (_v) {
                  {
                    // '1000' is the typecheck precedence code. It means: check after basic
                    // types, but before arrays. See: http://www.swig.org/Doc3.0/Typemaps.html#Typemaps_overloading
                    _v = NIL_P(rb_check_array_type(argv[7])) ? 0 : 1;
                  }
                  if (_v) {
                    int res = SWIG_AsPtr_std_wstring(argv[8], (std::wstring**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap___unpooling____SWIG_0(nargs, args, self);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 9, "__unpooling__", 
    "    CNTK::FunctionPtr __unpooling__(CNTK::Variable const &operand, CNTK::Variable const &poolingInput, CNTK::PoolingType UnpoolingType, CNTK::NDShape const &UnpoolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad, CNTK::NDShape const &upperPad, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __unpooling__(CNTK::Variable const &operand, CNTK::Variable const &poolingInput, CNTK::PoolingType UnpoolingType, CNTK::NDShape const &UnpoolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad, CNTK::NDShape const &upperPad)\n"
    "    CNTK::FunctionPtr __unpooling__(CNTK::Variable const &operand, CNTK::Variable const &poolingInput, CNTK::PoolingType UnpoolingType, CNTK::NDShape const &UnpoolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding, CNTK::NDShape const &lowerPad)\n"
    "    CNTK::FunctionPtr __unpooling__(CNTK::Variable const &operand, CNTK::Variable const &poolingInput, CNTK::PoolingType UnpoolingType, CNTK::NDShape const &UnpoolingWindowShape, CNTK::NDShape const &strides, std::vector< bool,std::allocator< bool > > const &autoPadding)\n"
    "    CNTK::FunctionPtr __unpooling__(CNTK::Variable const &operand, CNTK::Variable const &poolingInput, CNTK::PoolingType UnpoolingType, CNTK::NDShape const &UnpoolingWindowShape, CNTK::NDShape const &strides)\n"
    "    CNTK::FunctionPtr __unpooling__(CNTK::Variable const &operand, CNTK::Variable const &poolingInput, CNTK::PoolingType UnpoolingType, CNTK::NDShape const &UnpoolingWindowShape)\n");
  
  return Qnil;
}

.__variable_kind_name__(*args) ⇒ Object



23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
# File 'ext/cntk/cntk_wrap.cxx', line 23976

SWIGINTERN VALUE
_wrap___variable_kind_name__(int argc, VALUE *argv, VALUE self) {
  CNTK::VariableKind arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  wchar_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "CNTK::VariableKind","CNTK::VariableKindName", 1, argv[0] ));
  } 
  arg1 = static_cast< CNTK::VariableKind >(val1);
  {
    try {
      result = (wchar_t *)CNTK::VariableKindName(arg1); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_FromWCharPtr((const wchar_t *)result);
  return vresult;
fail:
  return Qnil;
}

.__weighted_binary_cross_entropy__(*args, self) ⇒ Object



41705
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
41724
41725
41726
41727
41728
41729
41730
41731
41732
41733
41734
41735
41736
41737
41738
41739
41740
41741
41742
41743
41744
41745
41746
41747
41748
41749
41750
41751
41752
41753
41754
41755
41756
41757
41758
41759
41760
41761
41762
41763
41764
# File 'ext/cntk/cntk_wrap.cxx', line 41705

SWIGINTERN VALUE _wrap___weighted_binary_cross_entropy__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap___weighted_binary_cross_entropy____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_AsPtr_std_wstring(argv[3], (std::wstring**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap___weighted_binary_cross_entropy____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__weighted_binary_cross_entropy__", 
    "    CNTK::FunctionPtr __weighted_binary_cross_entropy__(CNTK::Variable const &prediction, CNTK::Variable const &targets, CNTK::Variable const &weights, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __weighted_binary_cross_entropy__(CNTK::Variable const &prediction, CNTK::Variable const &targets, CNTK::Variable const &weights)\n");
  
  return Qnil;
}

.__where__(*args, self) ⇒ Object



53006
53007
53008
53009
53010
53011
53012
53013
53014
53015
53016
53017
53018
53019
53020
53021
53022
53023
53024
53025
53026
53027
53028
53029
53030
53031
53032
53033
53034
53035
53036
53037
53038
53039
53040
53041
53042
53043
53044
53045
# File 'ext/cntk/cntk_wrap.cxx', line 53006

SWIGINTERN VALUE _wrap___where__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___where____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___where____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__where__", 
    "    CNTK::FunctionPtr __where__(CNTK::Variable const &condition, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __where__(CNTK::Variable const &condition)\n");
  
  return Qnil;
}

.__xavier_initializer__(*args, self) ⇒ Object



26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
# File 'ext/cntk/cntk_wrap.cxx', line 26271

SWIGINTERN VALUE _wrap___xavier_initializer__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap___xavier_initializer____SWIG_4(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap___xavier_initializer____SWIG_3(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap___xavier_initializer____SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap___xavier_initializer____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_long(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap___xavier_initializer____SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "__xavier_initializer__", 
    "    CNTK::Dictionary __xavier_initializer__(double scale, int outputRank, int filterRank, unsigned long seed)\n"
    "    CNTK::Dictionary __xavier_initializer__(double scale, int outputRank, int filterRank)\n"
    "    CNTK::Dictionary __xavier_initializer__(double scale, int outputRank)\n"
    "    CNTK::Dictionary __xavier_initializer__(double scale)\n"
    "    CNTK::Dictionary __xavier_initializer__()\n");
  
  return Qnil;
}

.abs(*args, self) ⇒ Object



36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
# File 'ext/cntk/cntk_wrap.cxx', line 36379

SWIGINTERN VALUE _wrap___abs__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap___abs____SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CNTK__Variable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_wstring(argv[1], (std::wstring**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap___abs____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "__abs__", 
    "    CNTK::FunctionPtr __abs__(CNTK::Variable const &operand, std::wstring const &name)\n"
    "    CNTK::FunctionPtr __abs__(CNTK::Variable const &operand)\n");
  
  return Qnil;
}

.create_composite_minibatch_source(dict) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/cntk/io.rb', line 3

def self.create_composite_minibatch_source(dict)
  if dict.respond_to?(:to_hash)
    h = {}
    dict.to_hash.each_pair{|k, v|
      k = k.to_s if k.is_a?(Symbol)
      h[k] = v
    }
    des = h["deserializers"]
    unless des.respond_to?(:to_ary)
      h["deserializers"] = [des]
    end
    dict = Dictionary.create(h)
  end
  CNTK.__create_composite_minibatch_source__(dict)
end

.default_unit_gain_value(*args) ⇒ Object



55426
55427
55428
55429
55430
55431
55432
55433
55434
55435
55436
55437
55438
55439
55440
55441
55442
55443
55444
55445
55446
55447
55448
55449
55450
55451
55452
55453
55454
55455
# File 'ext/cntk/cntk_wrap.cxx', line 55426

SWIGINTERN VALUE
_wrap_default_unit_gain_value(int argc, VALUE *argv, VALUE self) {
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  {
    try {
      result = (bool)CNTK::DefaultUnitGainValue(); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

.DefaultParamInitFilterRankObject



25477
25478
25479
25480
25481
25482
25483
# File 'ext/cntk/cntk_wrap.cxx', line 25477

SWIGINTERN VALUE
_wrap_DefaultParamInitFilterRank_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_int(static_cast< int >(CNTK::DefaultParamInitFilterRank));
  return _val;
}

.DefaultParamInitOutputRankObject



25468
25469
25470
25471
25472
25473
25474
# File 'ext/cntk/cntk_wrap.cxx', line 25468

SWIGINTERN VALUE
_wrap_DefaultParamInitOutputRank_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_int(static_cast< int >(CNTK::DefaultParamInitOutputRank));
  return _val;
}

.DefaultParamInitScaleObject



25459
25460
25461
25462
25463
25464
25465
# File 'ext/cntk/cntk_wrap.cxx', line 25459

SWIGINTERN VALUE
_wrap_DefaultParamInitScale_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_int(static_cast< int >(CNTK::DefaultParamInitScale));
  return _val;
}

.DefaultVarianceMomentumObject



56831
56832
56833
56834
56835
56836
56837
# File 'ext/cntk/cntk_wrap.cxx', line 56831

SWIGINTERN VALUE
_wrap_DefaultVarianceMomentum_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(&CNTK::DefaultVarianceMomentum), SWIGTYPE_p_CNTK__MomentumSchedule,  0 );
  return _val;
}

.DefaultVarianceMomentum=(_val) ⇒ Object



56840
56841
56842
56843
56844
56845
56846
56847
56848
56849
56850
56851
56852
56853
56854
56855
56856
56857
# File 'ext/cntk/cntk_wrap.cxx', line 56840

SWIGINTERN VALUE
_wrap_DefaultVarianceMomentum_set(VALUE self, VALUE _val) {
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_CNTK__MomentumSchedule,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""CNTK::DefaultVarianceMomentum""' of type '""CNTK::MomentumSchedule""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""CNTK::DefaultVarianceMomentum""' of type '""CNTK::MomentumSchedule""'");
    } else {
      CNTK::DefaultVarianceMomentum = *(reinterpret_cast< CNTK::MomentumSchedule * >(argp));
    }
  }
  return _val;
fail:
  return Qnil;
}

.SentinelValueForAutoSelectRandomSeedObject



25441
25442
25443
25444
25445
25446
25447
# File 'ext/cntk/cntk_wrap.cxx', line 25441

SWIGINTERN VALUE
_wrap_SentinelValueForAutoSelectRandomSeed_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(CNTK::SentinelValueForAutoSelectRandomSeed));
  return _val;
}

.SentinelValueForInferParamInitRankObject



25450
25451
25452
25453
25454
25455
25456
# File 'ext/cntk/cntk_wrap.cxx', line 25450

SWIGINTERN VALUE
_wrap_SentinelValueForInferParamInitRank_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_int(static_cast< int >(CNTK::SentinelValueForInferParamInitRank));
  return _val;
}

.set_default_unit_gain_value(*args) ⇒ Object



55458
55459
55460
55461
55462
55463
55464
55465
55466
55467
55468
55469
55470
55471
55472
55473
55474
55475
55476
55477
55478
55479
55480
55481
55482
55483
55484
55485
55486
55487
55488
55489
55490
55491
55492
# File 'ext/cntk/cntk_wrap.cxx', line 55458

SWIGINTERN VALUE
_wrap_set_default_unit_gain_value(int argc, VALUE *argv, VALUE self) {
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_bool(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","CNTK::SetDefaultUnitGainValue", 1, argv[0] ));
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      CNTK::SetDefaultUnitGainValue(arg1); 
    }
    catch (const std::runtime_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (const std::invalid_argument &e) {
      SWIG_exception(SWIG_ValueError,e.what()); 
    }
    catch (const std::logic_error &e) {
      SWIG_exception(SWIG_RuntimeError,e.what()); 
    }
    catch (...) {
      SWIG_exception(SWIG_UnknownError,"Runtime exception"); 
    }
  }
  return Qnil;
fail:
  return Qnil;
}