129 elif self.scaler is not None: 130 self.optimizer.step = self._optimizer_patched_step_method --> 132 self.scaler.step(self.optimizer, closure) 133 self.scaler.update() 135 if not self._accelerate_step_called: 136 # If the optimizer step was skipped, gradient overflow was detected. ...
(), group_size); // We discard the message if address is not valid if (rc != 0) { rc = group_msg.close (); errno_assert (rc == 0); body_msg.close (); errno_assert (rc == 0); return; } size = body_size; memcpy (out_buffer, body_msg.data (), body_size); } else...
[INFO ] stdout ";"/dev/inaugurator/log";"log";"inaugurator";"MlgKeA-LzIW-H8Yw-xLEp-7igA-Jtd3-Hp0P9K [2018-07-25 17:51:53,857][ceph_volume.process][INFO ] stdout ";"/dev/inaugurator/root";"root";"inaugurator";"4PC2Um-8SgD-Mb0U-lirn-Ur2K-qz7V-VAXMw4 [2018-07-25 ...
ret = _gnix_ht_insert(gnix_ep->vc_ht, *key, vc);cr_assert(!ret);/* make a dummy request */dlist_insert_head(&req->dlist, &vc->tx_queue);/* cancel simulated request */ret = fi_cancel(&ep[0]->fid, foobar_ptr);cr_assert(ret == FI_SUCCESS,"fi_cancel failed");/* che...
note_store.updateNote.side_effect =Nonechanges_store.retry_failed_operations()assert_not_in(operation, changes_store.saved_operations) 开发者ID:Lewix,项目名称:evernotecli,代码行数:7,代码来源:store_tests.py 示例2: test_numpy_reset_array_undec ...
common.revive_connection(Mock(), channel,None) 开发者ID:celery,项目名称:kombu,代码行数:9,代码来源:test_common.py 示例4: test_A_simplejson ▲点赞 2▼ # 需要导入模块: from case import Mock [as 别名]# 或者: from case.Mock importassert_called_with[as 别名]deftest_A_simplejson():withmoc...
* @param CallBackRef is the reference passed in when the function * was registered. * @param EpNum is the Number of the endpoint on which the event occured. * @param EventType is type of the event that occured. * * @return None. ...
Log_info(ic->logger,"DROP message because CA is not established.");returnError_NONE; }else{// When a "server" gets a new connection from a "client" the router doesn't// know about that client so if the client sends a packet to the server, the// server will be unable to handle ...
示例2: test_with_xep0186 ▲点赞 5▼ deftest_with_xep0186(q, bus, conn, stream):statuses = conn.Properties.Get(cs.CONN_IFACE_SIMPLE_PRESENCE,'Statuses')# testbusy and testaway are provided by test pluginassertContains('testbusy', statuses)assertContains('testaway', statuses) ...
ret = _gnix_ht_insert(gnix_ep->vc_ht, *key, vc);cr_assert(!ret);/* make a dummy request */dlist_insert_head(&req->dlist, &vc->tx_queue);/* cancel simulated request */ret = fi_cancel(&ep[0]->fid, foobar_ptr);cr_assert(ret == FI_SUCCESS,"fi_cancel failed");/* che...