Class: CNTK::StreamInformation
- Inherits:
-
Object
- Object
- CNTK::StreamInformation
- Includes:
- InspectUtil
- Defined in:
- lib/cntk/inspect.rb,
ext/cntk/cntk_wrap.cxx
Instance Method Summary collapse
-
#==(*args) ⇒ Object
call-seq: ==(other) -> bool.
- #element_type(*args) ⇒ Object
- #element_type=(*args) ⇒ Object
- #id(*args) ⇒ Object
- #id=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #inspect ⇒ Object
- #name(*args) ⇒ Object
- #name=(*args) ⇒ Object
- #sample_layout(*args) ⇒ Object
- #sample_layout=(*args) ⇒ Object
- #storage_format(*args) ⇒ Object
- #storage_format=(*args) ⇒ Object
Methods included from InspectUtil
#inspect_methods, #inspect_methods_p
Constructor Details
#initialize(*args) ⇒ Object
60375 60376 60377 60378 60379 60380 60381 60382 60383 60384 60385 60386 60387 60388 60389 60390 60391 60392 60393 60394 60395 60396 60397 60398 60399 60400 60401 60402 60403 |
# File 'ext/cntk/cntk_wrap.cxx', line 60375
SWIGINTERN VALUE
_wrap_new_StreamInformation(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
{
try {
result = (CNTK::StreamInformation *)new CNTK::StreamInformation();
DATA_PTR(self) = result;
}
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 self;
fail:
return Qnil;
}
|
Instance Method Details
#==(*args) ⇒ Object
call-seq:
==(other) -> bool
Equality comparison operator.
60309 60310 60311 60312 60313 60314 60315 60316 60317 60318 60319 60320 60321 60322 60323 60324 60325 60326 60327 60328 60329 60330 60331 60332 60333 60334 60335 60336 60337 60338 60339 60340 60341 60342 60343 60344 60345 60346 60347 60348 60349 60350 60351 60352 60353 60354 60355 60356 60357 |
# File 'ext/cntk/cntk_wrap.cxx', line 60309
SWIGINTERN VALUE
_wrap_StreamInformation___eq__(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
CNTK::StreamInformation *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
bool 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(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation const *","__eq__", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CNTK__StreamInformation, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CNTK::StreamInformation const &","__eq__", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "CNTK::StreamInformation const &","__eq__", 2, argv[0]));
}
arg2 = reinterpret_cast< CNTK::StreamInformation * >(argp2);
{
try {
result = (bool)CNTK_StreamInformation___eq__((CNTK::StreamInformation const *)arg1,(CNTK::StreamInformation const &)*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_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#element_type(*args) ⇒ Object
60223 60224 60225 60226 60227 60228 60229 60230 60231 60232 60233 60234 60235 60236 60237 60238 60239 60240 60241 60242 60243 60244 |
# File 'ext/cntk/cntk_wrap.cxx', line 60223
SWIGINTERN VALUE
_wrap_StreamInformation_element_type_get(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
enum CNTK::DataType result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_elementType", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
result = (enum CNTK::DataType) ((arg1)->m_elementType);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#element_type=(*args) ⇒ Object
60194 60195 60196 60197 60198 60199 60200 60201 60202 60203 60204 60205 60206 60207 60208 60209 60210 60211 60212 60213 60214 60215 60216 60217 60218 60219 60220 |
# File 'ext/cntk/cntk_wrap.cxx', line 60194
SWIGINTERN VALUE
_wrap_StreamInformation_element_type_set(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
enum CNTK::DataType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_elementType", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "enum CNTK::DataType","m_elementType", 2, argv[0] ));
}
arg2 = static_cast< enum CNTK::DataType >(val2);
if (arg1) (arg1)->m_elementType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#id(*args) ⇒ Object
60117 60118 60119 60120 60121 60122 60123 60124 60125 60126 60127 60128 60129 60130 60131 60132 60133 60134 60135 60136 60137 60138 |
# File 'ext/cntk/cntk_wrap.cxx', line 60117
SWIGINTERN VALUE
_wrap_StreamInformation_id_get(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_id", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
result = ((arg1)->m_id);
vresult = SWIG_From_size_t(static_cast< size_t >(result));
return vresult;
fail:
return Qnil;
}
|
#id=(*args) ⇒ Object
60088 60089 60090 60091 60092 60093 60094 60095 60096 60097 60098 60099 60100 60101 60102 60103 60104 60105 60106 60107 60108 60109 60110 60111 60112 60113 60114 |
# File 'ext/cntk/cntk_wrap.cxx', line 60088
SWIGINTERN VALUE
_wrap_StreamInformation_id_set(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
size_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_t val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_id", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","m_id", 2, argv[0] ));
}
arg2 = static_cast< size_t >(val2);
if (arg1) (arg1)->m_id = arg2;
return Qnil;
fail:
return Qnil;
}
|
#inspect ⇒ Object
44 45 46 |
# File 'lib/cntk/inspect.rb', line 44 def inspect inspect_methods([:name, :id]) end |
#name(*args) ⇒ Object
60064 60065 60066 60067 60068 60069 60070 60071 60072 60073 60074 60075 60076 60077 60078 60079 60080 60081 60082 60083 60084 60085 |
# File 'ext/cntk/cntk_wrap.cxx', line 60064
SWIGINTERN VALUE
_wrap_StreamInformation_name_get(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::wstring *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_name", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
result = (std::wstring *) & ((arg1)->m_name);
vresult = SWIG_From_std_wstring(static_cast< std::wstring >(*result));
return vresult;
fail:
return Qnil;
}
|
#name=(*args) ⇒ Object
60028 60029 60030 60031 60032 60033 60034 60035 60036 60037 60038 60039 60040 60041 60042 60043 60044 60045 60046 60047 60048 60049 60050 60051 60052 60053 60054 60055 60056 60057 60058 60059 60060 60061 |
# File 'ext/cntk/cntk_wrap.cxx', line 60028
SWIGINTERN VALUE
_wrap_StreamInformation_name_set(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
std::wstring *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_name", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
{
std::wstring *ptr = (std::wstring *)0;
res2 = SWIG_AsPtr_std_wstring(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::wstring const &","m_name", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::wstring const &","m_name", 2, argv[0]));
}
arg2 = ptr;
}
if (arg1) (arg1)->m_name = *arg2;
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#sample_layout(*args) ⇒ Object
60276 60277 60278 60279 60280 60281 60282 60283 60284 60285 60286 60287 60288 60289 60290 60291 60292 60293 60294 60295 60296 60297 |
# File 'ext/cntk/cntk_wrap.cxx', line 60276
SWIGINTERN VALUE
_wrap_StreamInformation_sample_layout_get(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
CNTK::NDShape *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_sampleLayout", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
result = (CNTK::NDShape *)& ((arg1)->m_sampleLayout);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNTK__NDShape, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#sample_layout=(*args) ⇒ Object
60247 60248 60249 60250 60251 60252 60253 60254 60255 60256 60257 60258 60259 60260 60261 60262 60263 60264 60265 60266 60267 60268 60269 60270 60271 60272 60273 |
# File 'ext/cntk/cntk_wrap.cxx', line 60247
SWIGINTERN VALUE
_wrap_StreamInformation_sample_layout_set(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
CNTK::NDShape *arg2 = (CNTK::NDShape *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_sampleLayout", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CNTK__NDShape, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CNTK::NDShape *","m_sampleLayout", 2, argv[0] ));
}
arg2 = reinterpret_cast< CNTK::NDShape * >(argp2);
if (arg1) (arg1)->m_sampleLayout = *arg2;
return Qnil;
fail:
return Qnil;
}
|
#storage_format(*args) ⇒ Object
60170 60171 60172 60173 60174 60175 60176 60177 60178 60179 60180 60181 60182 60183 60184 60185 60186 60187 60188 60189 60190 60191 |
# File 'ext/cntk/cntk_wrap.cxx', line 60170
SWIGINTERN VALUE
_wrap_StreamInformation_storage_format_get(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
enum CNTK::StorageFormat result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_storageFormat", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
result = (enum CNTK::StorageFormat) ((arg1)->m_storageFormat);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#storage_format=(*args) ⇒ Object
60141 60142 60143 60144 60145 60146 60147 60148 60149 60150 60151 60152 60153 60154 60155 60156 60157 60158 60159 60160 60161 60162 60163 60164 60165 60166 60167 |
# File 'ext/cntk/cntk_wrap.cxx', line 60141
SWIGINTERN VALUE
_wrap_StreamInformation_storage_format_set(int argc, VALUE *argv, VALUE self) {
CNTK::StreamInformation *arg1 = (CNTK::StreamInformation *) 0 ;
enum CNTK::StorageFormat arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CNTK__StreamInformation, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CNTK::StreamInformation *","m_storageFormat", 1, self ));
}
arg1 = reinterpret_cast< CNTK::StreamInformation * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "enum CNTK::StorageFormat","m_storageFormat", 2, argv[0] ));
}
arg2 = static_cast< enum CNTK::StorageFormat >(val2);
if (arg1) (arg1)->m_storageFormat = arg2;
return Qnil;
fail:
return Qnil;
}
|