/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/ |
D | sctp_cc_functions.c | 62 sctp_enforce_cwnd_limit(struct sctp_association *assoc, struct sctp_nets *net) in sctp_enforce_cwnd_limit() argument 65 (net->cwnd > assoc->max_cwnd) && in sctp_enforce_cwnd_limit() 66 (net->cwnd > (net->mtu - sizeof(struct sctphdr)))) { in sctp_enforce_cwnd_limit() 67 net->cwnd = assoc->max_cwnd ; in sctp_enforce_cwnd_limit() 68 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_enforce_cwnd_limit() 69 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_enforce_cwnd_limit() 75 sctp_set_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) in sctp_set_initial_cc_param() argument 84 net->cwnd = min((net->mtu * 4), max((2 * net->mtu), SCTP_INITIAL_CWND)); in sctp_set_initial_cc_param() 92 net->cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu; in sctp_set_initial_cc_param() 97 net->cwnd /= assoc->numnets; in sctp_set_initial_cc_param() [all …]
|
D | sctp_timer.c | 98 struct sctp_nets *net, uint16_t threshold) in sctp_threshold_management() argument 100 if (net) { in sctp_threshold_management() 101 net->error_count++; in sctp_threshold_management() 103 (void *)net, net->error_count, in sctp_threshold_management() 104 net->failure_threshold); in sctp_threshold_management() 105 if (net->error_count > net->failure_threshold) { in sctp_threshold_management() 107 if (net->dest_state & SCTP_ADDR_REACHABLE) { in sctp_threshold_management() 108 net->dest_state &= ~SCTP_ADDR_REACHABLE; in sctp_threshold_management() 109 net->dest_state &= ~SCTP_ADDR_REQ_PRIMARY; in sctp_threshold_management() 110 net->dest_state &= ~SCTP_ADDR_PF; in sctp_threshold_management() [all …]
|
/third_party/node/test/parallel/ |
D | test-net-isip.js | 25 const net = require('net'); constant 27 assert.strictEqual(net.isIP('127.0.0.1'), 4); 28 assert.strictEqual(net.isIP('x127.0.0.1'), 0); 29 assert.strictEqual(net.isIP('example.com'), 0); 30 assert.strictEqual(net.isIP('0000:0000:0000:0000:0000:0000:0000:0000'), 6); 31 assert.strictEqual(net.isIP('0000:0000:0000:0000:0000:0000:0000:0000::0000'), 33 assert.strictEqual(net.isIP('1050:0:0:0:5:600:300c:326b'), 6); 34 assert.strictEqual(net.isIP('2001:252:0:1::2008:6'), 6); 35 assert.strictEqual(net.isIP('2001:dead:beef:1::2008:6'), 6); 36 assert.strictEqual(net.isIP('2001::'), 6); [all …]
|
/third_party/boost/libs/beast/test/beast/core/ |
D | buffer_traits.cpp | 26 operator net::const_buffer() const noexcept in operator net::const_buffer() 63 net::const_buffer 67 net::const_buffer, net::const_buffer 71 net::const_buffer, net::mutable_buffer 75 net::mutable_buffer, net::mutable_buffer 79 net::const_buffer const& 83 net::const_buffer const&, net::const_buffer const& 87 net::const_buffer const&, net::mutable_buffer const& 96 net::mutable_buffer 100 net::mutable_buffer, net::mutable_buffer [all …]
|
D | buffers_cat.cpp | 38 net::const_buffer(&c[0], 1), in testDefaultIterators() 39 net::const_buffer(&c[1], 1)); in testDefaultIterators() 76 net::const_buffer b1(s.data(), 6); in testBufferSequence() 77 net::const_buffer b2( in testBufferSequence() 104 net::const_buffer b1{"He", 2}; in testExceptions() 105 net::const_buffer b2{"llo,", 4}; in testExceptions() 106 net::const_buffer b3{" world!", 7}; in testExceptions() 159 using value_type = net::const_buffer; in testEmpty() 179 net::const_buffer b0{}; in testEmpty() 180 net::const_buffer b1{"He", 2}; in testEmpty() [all …]
|
D | async_base.cpp | 38 static struct ex1_context : net::execution_context 46 net::execution_context & 47 query(net::execution::context_t c) const noexcept in query() 48 { return *reinterpret_cast<net::execution_context *>(&ex1ctx); } in query() 50 net::execution::blocking_t 51 query(net::execution::blocking_t) const noexcept in query() 52 { return net::execution::blocking; }; in query() 54 net::execution::outstanding_work_t 55 query(net::execution::outstanding_work_t w) const noexcept in query() 56 { return net::execution::outstanding_work; } in query() [all …]
|
D | basic_stream.cpp | 45 template<class Executor = net::io_context::executor_type> 145 net::io_context ioc; 146 net::ip::tcp::acceptor a; 147 net::ip::tcp::endpoint ep; 151 , ep(net::ip::make_address_v4("127.0.0.1"), 0) in test_acceptor() 155 net::socket_base::reuse_address(true)); in test_acceptor() 157 a.listen(net::socket_base::max_listen_connections); in test_acceptor() 160 [](error_code, net::ip::tcp::socket) in test_acceptor() 170 net::io_context ioc_; 171 net::ip::tcp::acceptor acceptor_; [all …]
|
/third_party/boost/libs/beast/test/beast/http/ |
D | type_traits.cpp | 26 BOOST_STATIC_ASSERT(net::is_const_buffer_sequence<chunk_crlf>::value); 30 net::const_buffer>::value); 34 net::mutable_buffer>::value); 37 decltype(*net::buffer_sequence_begin(std::declval<chunk_crlf const&>())), 38 net::const_buffer 42 decltype(*net::buffer_sequence_begin(std::declval<chunk_crlf const&>())), 43 net::mutable_buffer 46 BOOST_STATIC_ASSERT(net::is_const_buffer_sequence< 47 buffers_cat_view<net::const_buffer, chunk_crlf> 51 buffers_type<buffers_cat_view<net::const_buffer, chunk_crlf>>, [all …]
|
/third_party/mindspore/tests/syntax/simple_expression/ |
D | test_logic_not.py | 47 net = LogicNot() 48 ret = net(1) 53 net = LogicNot() 54 ret = net(1.89) 58 net = LogicNot() 60 ret = net(x) 64 net = LogicNot() 66 ret = net(x) 71 net = LogicNot() 73 ret = net(x) [all …]
|
D | test_logic_and.py | 48 net = LogicAnd() 49 ret = net(1, 2) 54 net = LogicAnd() 55 ret = net(1.89, 1.99) 60 net = LogicAnd() 61 ret = net(1.89, 1) 66 net = LogicAnd() 69 ret = net(x, y) 74 net = LogicAnd() 77 ret = net(x, y) [all …]
|
D | test_logic_or.py | 48 net = LogicOr() 49 ret = net(1, 2) 54 net = LogicOr() 55 ret = net(1.89, 1.99) 60 net = LogicOr() 61 ret = net(1.89, 1) 66 net = LogicOr() 69 ret = net(x, y) 74 net = LogicOr() 77 ret = net(x, y) [all …]
|
D | test_member_not_in.py | 48 net = MemberNotIn() 49 ret = net(1, 2) 54 net = MemberNotIn() 55 ret = net(1, [1, 2]) 60 net = MemberNotInSpec(1, ["1", "2"]) 61 ret = net(1, 2) 66 net = MemberNotInSpec(1, ["1", 2]) 67 ret = net(1, 2) 72 net = MemberNotIn() 73 ret = net(1, (1, 2)) [all …]
|
D | test_member_in.py | 49 net = MemberIn() 50 ret = net(1, 2) 55 net = MemberIn() 56 ret = net(1, [1, 2]) 61 net = MemberInSpec(1, ["1", "2"]) 62 ret = net(1, 2) 67 net = MemberInSpec(1, ["1", 2]) 68 ret = net(1, 2) 73 net = MemberIn() 74 ret = net(1, (1, 2)) [all …]
|
/third_party/mindspore/tests/ut/python/parallel/ |
D | test_gather_v2.py | 69 net = GradWrap(NetWithLoss(Net(0, strategy1, strategy2))) 70 net.set_auto_parallel() 74 net.set_train() 75 _cell_graph_executor.compile(net, x, y) 82 net = GradWrap(NetWithLoss(Net(0, strategy1, strategy2))) 83 net.set_auto_parallel() 87 net.set_train() 88 _cell_graph_executor.compile(net, x, y) 95 net = GradWrap(NetWithLoss(Net(0, strategy1, strategy2))) 96 net.set_auto_parallel() [all …]
|
D | test_sparse_gather_v2.py | 70 net = GradWrap(NetWithLoss(Net(0, strategy1, strategy2))) 71 net.set_auto_parallel() 75 net.set_train() 76 _cell_graph_executor.compile(net, x, y) 83 net = GradWrap(NetWithLoss(Net(0, strategy1, strategy2))) 84 net.set_auto_parallel() 88 net.set_train() 89 _cell_graph_executor.compile(net, x, y) 96 net = GradWrap(NetWithLoss(Net(0, strategy1, strategy2))) 97 net.set_auto_parallel() [all …]
|
D | test_conv2d.py | 50 def compile_net(net, input_x=_x): argument 51 optimizer = Momentum(net.trainable_params(), learning_rate=0.1, momentum=0.9) 52 train_net = TrainOneStepCell(net, optimizer) 63 …net = Net(_w1, out_channel=8, kernel_size=2, pad_mode="same", stride=1, strategy1=strategy1, strat… 64 compile_net(net) 71 net = Net(_w1, out_channel=8, kernel_size=2, pad_mode="same", stride=(2, 2, 1, 1), 74 compile_net(net) 81 net = Net(_w1, out_channel=8, kernel_size=2, pad_mode="same", stride=1, dilation=2, 83 compile_net(net) 90 net = Net(_w4, out_channel=8, kernel_size=2, pad_mode="same", stride=1, group=2, [all …]
|
D | test_gathernd_further.py | 99 def compile_net(net): argument 104 opt = Momentum(net.trainable_params(), learning_rate, momentum) 105 model = Model(net, optimizer=opt) 118 net = Net(w1_shape, indices_shape, strategy1, strategy2, strategy3) 119 compile_net(net) 130 net = Net(w1_shape, indices_shape, strategy1, strategy2, strategy3) 131 compile_net(net) 142 net = Net(w1_shape, indices_shape, strategy1, strategy2, strategy3) 143 compile_net(net) 154 net = Net2(w1_shape, indices_shape, strategy1, strategy2, strategy3) [all …]
|
/third_party/mindspore/tests/ut/python/parameter_feature/ |
D | test_var_grad.py | 48 net = AddNet() 49 _ = grad_all_with_sens(net, net.trainable_params())(x, y, sens) 53 def __init__(self, net): argument 59 self.net = net 62 return self.net(*args) * self.w + self.b 108 def __init__(self, net): argument 110 self.weights = ParameterTuple(net.trainable_params()) 111 self.net = net 114 return grad_by_list_with_sens(self.net, self.weights)(*inputs) 119 net = VarNet(SecondNet()) [all …]
|
/third_party/boost/libs/beast/test/beast/websocket/ |
D | doc_snippets.cpp | 30 net::io_service ios; in fxx() 31 net::io_service::work work{ios}; in fxx() 34 net::ip::tcp::socket sock{ios}; in fxx() 38 stream<net::ip::tcp::socket> ws{ios}; in fxx() 44 stream<net::ip::tcp::socket> ws{std::move(sock)}; in fxx() 50 stream<net::ip::tcp::socket&> ws{sock}; in fxx() 54 ws.next_layer().shutdown(net::ip::tcp::socket::shutdown_send); in fxx() 61 net::ip::tcp::resolver r{ios}; in fxx() 62 stream<net::ip::tcp::socket> ws{ios}; in fxx() 63 net::connect(ws.next_layer(), r.resolve({host, "ws"})); in fxx() [all …]
|
/third_party/mindspore/tests/st/ops/ascend/ |
D | test_autocast.py | 76 net = TensorAutoCast() 77 rs = net(t_uint8, t_int8) 79 rs = net(t_uint8, t_int16) 81 rs = net(t_uint8, t_int32) 83 rs = net(t_uint8, t_int64) 85 rs = net(t_int8, t_int16) 87 rs = net(t_int8, t_int32) 89 rs = net(t_int8, t_int64) 91 rs = net(t_int16, t_int32) 93 rs = net(t_int16, t_int64) [all …]
|
/third_party/mindspore/tests/ut/python/nn/optim/ |
D | test_adam.py | 71 net = NetWithoutWeight() 72 net.set_train() 74 AdamWeightDecay(net.trainable_params(), learning_rate=0.1) 81 net = Net() 82 net.set_train() 85 optimizer = AdamWeightDecay(net.trainable_params(), learning_rate=0.1) 87 net_with_loss = WithLossCell(net, loss) 96 net = Net() 97 net.set_train() 100 optimizer = Adam(net.trainable_params(), learning_rate=0.1, weight_decay=0.9) [all …]
|
D | test_adafactor.py | 77 net = Net() 78 net.set_train() 81 …optimizer = AdaFactor(net.trainable_params(), learning_rate=0.1, weight_decay=0.9, relative_step=F… 83 net_with_loss = WithLossCell(net, loss) 92 net = Net() 93 net.set_train() 96 optimizer = AdaFactor(net.trainable_params(), learning_rate=None, weight_decay=0.9) 98 net_with_loss = WithLossCell(net, loss) 107 net = Net() 108 net.set_train() [all …]
|
/third_party/cef/libcef/common/net_service/ |
D | net_service_util.cc | 33 const net::ParsedCookie& pc, in GetCookieDomain() 38 return net::cookie_util::GetCookieDomainWithString(url, domain_string, in GetCookieDomain() 42 cef_cookie_same_site_t MakeCefCookieSameSite(net::CookieSameSite value) { in MakeCefCookieSameSite() 44 case net::CookieSameSite::UNSPECIFIED: in MakeCefCookieSameSite() 46 case net::CookieSameSite::NO_RESTRICTION: in MakeCefCookieSameSite() 48 case net::CookieSameSite::LAX_MODE: in MakeCefCookieSameSite() 50 case net::CookieSameSite::STRICT_MODE: in MakeCefCookieSameSite() 55 cef_cookie_priority_t MakeCefCookiePriority(net::CookiePriority value) { in MakeCefCookiePriority() 57 case net::COOKIE_PRIORITY_LOW: in MakeCefCookiePriority() 59 case net::COOKIE_PRIORITY_MEDIUM: in MakeCefCookiePriority() [all …]
|
/third_party/boost/boost/beast/core/detail/ |
D | get_io_context.hpp | 30 net::io_context* 31 get_io_context(net::io_context& ioc) in get_io_context() 37 net::io_context* 38 get_io_context(net::io_context::executor_type const& ex) in get_io_context() 40 return std::addressof(net::query(ex, net::execution::context)); in get_io_context() 44 net::io_context* 45 get_io_context(net::strand< in get_io_context() 46 net::io_context::executor_type> const& ex) in get_io_context() 52 net::io_context* 53 get_io_context(net::strand<Executor> const& ex) in get_io_context() [all …]
|
/third_party/boost/libs/beast/include/boost/beast/core/detail/ |
D | get_io_context.hpp | 30 net::io_context* 31 get_io_context(net::io_context& ioc) in get_io_context() 37 net::io_context* 38 get_io_context(net::io_context::executor_type const& ex) in get_io_context() 40 return std::addressof(net::query(ex, net::execution::context)); in get_io_context() 44 net::io_context* 45 get_io_context(net::strand< in get_io_context() 46 net::io_context::executor_type> const& ex) in get_io_context() 52 net::io_context* 53 get_io_context(net::strand<Executor> const& ex) in get_io_context() [all …]
|