Home
last modified time | relevance | path

Searched refs:default_context (Results 1 – 25 of 581) sorted by relevance

12345678910>>...24

/dports/math/vtk9/VTK-9.1.0/ThirdParty/libproj/vtklibproj/src/
H A Dpj_ctx.c31 static projCtx_t default_context; variable
67 default_context.last_errno = 0; in pj_get_default_ctx()
68 default_context.debug_level = PJ_LOG_NONE; in pj_get_default_ctx()
69 default_context.logger = pj_stderr_logger; in pj_get_default_ctx()
70 default_context.app_data = NULL; in pj_get_default_ctx()
71 default_context.fileapi = pj_get_default_fileapi(); in pj_get_default_ctx()
76 default_context.debug_level = atoi(getenv("PROJ_DEBUG")); in pj_get_default_ctx()
78 default_context.debug_level = PJ_LOG_DEBUG_MINOR; in pj_get_default_ctx()
85 return &default_context; in pj_get_default_ctx()
/dports/math/vtk8/VTK-8.2.0/ThirdParty/libproj/vtklibproj/src/
H A Dpj_ctx.c31 static projCtx_t default_context; variable
67 default_context.last_errno = 0; in pj_get_default_ctx()
68 default_context.debug_level = PJ_LOG_NONE; in pj_get_default_ctx()
69 default_context.logger = pj_stderr_logger; in pj_get_default_ctx()
70 default_context.app_data = NULL; in pj_get_default_ctx()
71 default_context.fileapi = pj_get_default_fileapi(); in pj_get_default_ctx()
76 default_context.debug_level = atoi(getenv("PROJ_DEBUG")); in pj_get_default_ctx()
78 default_context.debug_level = PJ_LOG_DEBUG_MINOR; in pj_get_default_ctx()
85 return &default_context; in pj_get_default_ctx()
/dports/devel/py-celery/celery-4.4.7/t/unit/tasks/
H A Dtest_context.py21 default_context = get_context_as_dict(Context()) variable
29 defaults = dict(default_context, children=[])
33 expected = dict(default_context)
39 assert get_context_as_dict(Context()) == default_context
42 expected = dict(default_context)
49 assert get_context_as_dict(Context()) == default_context
56 defaults = dict(default_context, children=[])
61 expected = dict(default_context)
68 assert get_context_as_dict(Context()) == default_context
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/tests/python/unittest/
H A Dtest_exc_handling.py51 out2 = mx.sym.random.normal(0, -1, x_shape, ctx=default_context())
54 arr = {'x': mx.nd.random.normal(0, 1, x_shape, ctx=default_context()),
55 'y': mx.nd.random.normal(0, 1, x_shape, ctx=default_context()),
56 'z': mx.nd.random.normal(0, 1, z_shape, ctx=default_context())}
58 exec1 = out.bind(ctx=default_context(), args=arr, args_grad=arr_grad)
88 model.collect_params().initialize(ctx=[default_context()])
108 a = mx.nd.random.normal(0, -1, (2, 2)).copyto(default_context())
117 b = mx.nd.random.normal(0, -1, (2, 2)).copyto(default_context())
149 a, b = mx.nd.random_normal(0, -1, (2, 2)).copyto(default_context())
162 a = mx.nd.random.normal(0, -1, (2, 2)).copyto(default_context())
[all …]
/dports/misc/mxnet/incubator-mxnet-1.9.0/tests/python/unittest/
H A Dtest_exc_handling.py51 out2 = mx.sym.random.normal(0, -1, x_shape, ctx=default_context())
54 arr = {'x': mx.nd.random.normal(0, 1, x_shape, ctx=default_context()),
55 'y': mx.nd.random.normal(0, 1, x_shape, ctx=default_context()),
56 'z': mx.nd.random.normal(0, 1, z_shape, ctx=default_context())}
58 exec1 = out.bind(ctx=default_context(), args=arr, args_grad=arr_grad)
88 model.collect_params().initialize(ctx=[default_context()])
108 a = mx.nd.random.normal(0, -1, (2, 2)).copyto(default_context())
117 b = mx.nd.random.normal(0, -1, (2, 2)).copyto(default_context())
149 a, b = mx.nd.random_normal(0, -1, (2, 2)).copyto(default_context())
162 a = mx.nd.random.normal(0, -1, (2, 2)).copyto(default_context())
[all …]
/dports/textproc/py-rdflib/rdflib-5.0.0/rdflib/plugins/serializers/
H A Dtrig.py23 self.default_context = store.default_context.identifier
24 if store.default_context:
25 self.contexts.append(store.default_context)
28 self.default_context = None
75 if self.default_context and store.identifier == self.default_context:
/dports/graphics/dcmtk/dcmtk-DCMTK-3.6.6/oflog/libsrc/
H A Dglobinit.cc99 static DefaultContext * default_context; variable
106 delete default_context; in ~destroy_default_context()
107 default_context = 0; in ~destroy_default_context()
117 assert (! default_context); in alloc_dc()
120 if (default_context) in alloc_dc()
127 default_context = new DefaultContext; in alloc_dc()
130 default_context->loglog.error ( in alloc_dc()
143 if (DCMTK_LOG4CPLUS_UNLIKELY (! default_context && alloc)) in get_dc()
145 return default_context; in get_dc()
/dports/textproc/uim-qt5/uim-d1ac9d9/uim/
H A Dagent.c46 } default_context; variable
80 uc =uim_create_context(&default_context, in init_agent()
89 default_context.uc = uc; in init_agent()
90 default_context.next = NULL; in init_agent()
96 struct agent_context *ac = &default_context; in main()
/dports/textproc/uim-gtk/uim-d1ac9d9/uim/
H A Dagent.c46 } default_context; variable
80 uc =uim_create_context(&default_context, in init_agent()
89 default_context.uc = uc; in init_agent()
90 default_context.next = NULL; in init_agent()
96 struct agent_context *ac = &default_context; in main()
/dports/textproc/uim-m17nlib/uim-d1ac9d9/uim/
H A Dagent.c46 } default_context; variable
80 uc =uim_create_context(&default_context, in init_agent()
89 default_context.uc = uc; in init_agent()
90 default_context.next = NULL; in init_agent()
96 struct agent_context *ac = &default_context; in main()
/dports/textproc/uim-gtk3/uim-d1ac9d9/uim/
H A Dagent.c46 } default_context; variable
80 uc =uim_create_context(&default_context, in init_agent()
89 default_context.uc = uc; in init_agent()
90 default_context.next = NULL; in init_agent()
96 struct agent_context *ac = &default_context; in main()
/dports/textproc/uim-el/uim-d1ac9d9/uim/
H A Dagent.c46 } default_context; variable
80 uc =uim_create_context(&default_context, in init_agent()
89 default_context.uc = uc; in init_agent()
90 default_context.next = NULL; in init_agent()
96 struct agent_context *ac = &default_context; in main()
/dports/japanese/uim-anthy/uim-d1ac9d9/uim/
H A Dagent.c46 } default_context; variable
80 uc =uim_create_context(&default_context, in init_agent()
89 default_context.uc = uc; in init_agent()
90 default_context.next = NULL; in init_agent()
96 struct agent_context *ac = &default_context; in main()
/dports/devel/log4cplus/log4cplus-1.1.2/src/
H A Dglobal-init.cxx83 static DefaultContext * default_context; variable
90 delete default_context; in ~destroy_default_context()
91 default_context = 0; in ~destroy_default_context()
101 assert (! default_context); in alloc_dc()
104 if (default_context) in alloc_dc()
111 default_context = new DefaultContext; in alloc_dc()
114 default_context->loglog.error ( in alloc_dc()
127 if (LOG4CPLUS_UNLIKELY (! default_context && alloc)) in get_dc()
129 return default_context; in get_dc()
/dports/science/py-chainer/chainer-7.8.0/chainerx_cc/chainerx/
H A Dcontext.cc307 Context* default_context = internal::GetInternalThreadLocalState().default_context; in GetDefaultContextNoExcept() local
308 if (default_context == nullptr) { in GetDefaultContextNoExcept()
311 return default_context; in GetDefaultContextNoExcept()
317 Context* default_context = internal::GetInternalThreadLocalState().default_context; in GetDefaultContext() local
318 if (default_context == nullptr) { in GetDefaultContext()
321 return *default_context; in GetDefaultContext()
325 Context*& default_context = internal::GetInternalThreadLocalState().default_context; in SetDefaultContext() local
326 if (default_context != context) { in SetDefaultContext()
327 default_context = context; in SetDefaultContext()
/dports/misc/py-gluonnlp/gluon-nlp-0.10.0/tests/unittest/
H A Dtest_optimizer.py20 from mxnet.test_utils import default_context, assert_almost_equal, rand_ndarray
39 w2 = mx.random.uniform(shape=shape, ctx=default_context(), dtype=dtype)
40 w1 = w2.copyto(default_context())
43 w1 = w2.copyto(default_context()).tostype('default')
47 g2 = mx.random.uniform(shape=shape, ctx=default_context(), dtype=dtype)
48 g1 = g2.copyto(default_context())
51 g1 = g2.copyto(default_context()).tostype('default')
71 w1.append(mx.random.uniform(shape=s, ctx=default_context(), dtype=dtype))
72 g1.append(mx.random.uniform(shape=s, ctx=default_context(), dtype=dtype))
/dports/devel/etl/synfig-1.2.2/ETL/ETL/
H A D_smach.h289 void* default_context; variable
336 default_state->leave_state(default_context); in set_default_state()
340 default_context=0; in set_default_state()
345 default_context=default_state->enter_state(machine_context); in set_default_state()
346 if(default_context) in set_default_state()
357 default_context=default_state->enter_state(machine_context); in set_default_state()
515 default_context(0),
525 default_state->leave_state(default_context); in ~smach()
573 return default_state->process_event(default_context,id); in process_event()
/dports/graphics/synfig/synfig-1.2.2/ETL/ETL/
H A D_smach.h289 void* default_context; variable
336 default_state->leave_state(default_context); in set_default_state()
340 default_context=0; in set_default_state()
345 default_context=default_state->enter_state(machine_context); in set_default_state()
346 if(default_context) in set_default_state()
357 default_context=default_state->enter_state(machine_context); in set_default_state()
515 default_context(0),
525 default_state->leave_state(default_context); in ~smach()
573 return default_state->process_event(default_context,id); in process_event()
/dports/graphics/synfigstudio/synfig-1.2.2/ETL/ETL/
H A D_smach.h289 void* default_context; variable
336 default_state->leave_state(default_context); in set_default_state()
340 default_context=0; in set_default_state()
345 default_context=default_state->enter_state(machine_context); in set_default_state()
346 if(default_context) in set_default_state()
357 default_context=default_state->enter_state(machine_context); in set_default_state()
515 default_context(0),
525 default_state->leave_state(default_context); in ~smach()
573 return default_state->process_event(default_context,id); in process_event()
/dports/devel/gn/gn-1962/src/gn/
H A Dfilesystem_utils_unittest.cc650 BuildDirContext default_context(&default_settings); in TEST() local
653 EXPECT_EQ("//out/Debug/", GetBuildDirAsSourceDir(default_context, in TEST()
667 GetBuildDirAsOutputFile(default_context, BuildDirType::OBJ).value()); in TEST()
670 GetBuildDirAsOutputFile(default_context, BuildDirType::GEN).value()); in TEST()
707 BuildDirContext default_context(&default_settings); in TEST() local
711 GetSubBuildDirAsSourceDir(default_context, SourceDir("//"), in TEST()
720 GetSubBuildDirAsSourceDir(default_context, SourceDir("//foo/bar/"), in TEST()
755 GetSubBuildDirAsSourceDir(default_context, SourceDir("/abs"), in TEST()
759 GetSubBuildDirAsOutputFile(default_context, SourceDir("/abs"), in TEST()
764 GetSubBuildDirAsSourceDir(default_context, SourceDir("/C:/abs"), in TEST()
[all …]
/dports/net/gstreamer1-plugins-srtp/gst-plugins-bad-1.16.2/ext/openal/
H A Dgstopenalsink.c249 sink->default_context = NULL; in gst_openal_sink_init()
584 if (sink->default_context) in gst_openal_sink_getcaps()
910 sink->default_context = context; in gst_openal_sink_prepare()
935 if (!sink->default_context) in gst_openal_sink_unprepare()
938 old = pushContext (sink->default_context); in gst_openal_sink_unprepare()
955 popContext (old, sink->default_context); in gst_openal_sink_unprepare()
958 sink->default_context = NULL; in gst_openal_sink_unprepare()
1034 popContext (old, sink->default_context); in gst_openal_sink_write()
1045 if (!sink->default_context) in gst_openal_sink_delay()
1067 popContext (old, sink->default_context); in gst_openal_sink_delay()
[all …]
/dports/net/gstreamer1-plugins-libmms/gst-plugins-bad-1.16.2/ext/openal/
H A Dgstopenalsink.c249 sink->default_context = NULL; in gst_openal_sink_init()
584 if (sink->default_context) in gst_openal_sink_getcaps()
910 sink->default_context = context; in gst_openal_sink_prepare()
935 if (!sink->default_context) in gst_openal_sink_unprepare()
938 old = pushContext (sink->default_context); in gst_openal_sink_unprepare()
955 popContext (old, sink->default_context); in gst_openal_sink_unprepare()
958 sink->default_context = NULL; in gst_openal_sink_unprepare()
1034 popContext (old, sink->default_context); in gst_openal_sink_write()
1045 if (!sink->default_context) in gst_openal_sink_delay()
1067 popContext (old, sink->default_context); in gst_openal_sink_delay()
[all …]
/dports/multimedia/gstreamer1-plugins-smoothstreaming/gst-plugins-bad-1.16.2/ext/openal/
H A Dgstopenalsink.c249 sink->default_context = NULL; in gst_openal_sink_init()
584 if (sink->default_context) in gst_openal_sink_getcaps()
910 sink->default_context = context; in gst_openal_sink_prepare()
935 if (!sink->default_context) in gst_openal_sink_unprepare()
938 old = pushContext (sink->default_context); in gst_openal_sink_unprepare()
955 popContext (old, sink->default_context); in gst_openal_sink_unprepare()
958 sink->default_context = NULL; in gst_openal_sink_unprepare()
1034 popContext (old, sink->default_context); in gst_openal_sink_write()
1045 if (!sink->default_context) in gst_openal_sink_delay()
1067 popContext (old, sink->default_context); in gst_openal_sink_delay()
[all …]
/dports/multimedia/gstreamer1-plugins-resindvd/gst-plugins-bad-1.16.2/ext/openal/
H A Dgstopenalsink.c249 sink->default_context = NULL; in gst_openal_sink_init()
584 if (sink->default_context) in gst_openal_sink_getcaps()
910 sink->default_context = context; in gst_openal_sink_prepare()
935 if (!sink->default_context) in gst_openal_sink_unprepare()
938 old = pushContext (sink->default_context); in gst_openal_sink_unprepare()
955 popContext (old, sink->default_context); in gst_openal_sink_unprepare()
958 sink->default_context = NULL; in gst_openal_sink_unprepare()
1034 popContext (old, sink->default_context); in gst_openal_sink_write()
1045 if (!sink->default_context) in gst_openal_sink_delay()
1067 popContext (old, sink->default_context); in gst_openal_sink_delay()
[all …]
/dports/multimedia/gstreamer1-plugins-msdk/gst-plugins-bad-1.16.2/ext/openal/
H A Dgstopenalsink.c249 sink->default_context = NULL; in gst_openal_sink_init()
584 if (sink->default_context) in gst_openal_sink_getcaps()
910 sink->default_context = context; in gst_openal_sink_prepare()
935 if (!sink->default_context) in gst_openal_sink_unprepare()
938 old = pushContext (sink->default_context); in gst_openal_sink_unprepare()
955 popContext (old, sink->default_context); in gst_openal_sink_unprepare()
958 sink->default_context = NULL; in gst_openal_sink_unprepare()
1034 popContext (old, sink->default_context); in gst_openal_sink_write()
1045 if (!sink->default_context) in gst_openal_sink_delay()
1067 popContext (old, sink->default_context); in gst_openal_sink_delay()
[all …]

12345678910>>...24