Jerry.Wang

Results 42 comments of Jerry.Wang

> # MPS Version > from transformers import AutoTokenizer, BertForSequenceClassification > import timeit > import torch > > tokenizer = AutoTokenizer.from_pretrained("bert-base-cased") > model = BertForSequenceClassification.from_pretrained("bert-base-cased").to(torch.device("mps")) > > tokens = tokenizer.tokenize("Hello...

Tried to set StatefulSet's `replica` to 3, all PODs crashed on startup. Even with empty consul, no key/values pre-exists before starting the PODs in StatefulSet ``` fail: Orleans.Runtime.MembershipService.MembershipAgent[100661] Failed to...

我也遇到了这个问题, 自己写了个小程序来解决这个问题. 这个程序是Rust写的, 以docker image的方式分发, 你的R2S能够跑docker就能用. 首先改 `sysctl.conf` , 允许通过 `/proc/sysrq-trigger` 关机重启 ``` echo "kernel.sysrq = 1" >> /etc/sysctl.conf ``` 改完后可以`sysctl -p` 立即生效,或者重启也可以. 然后用下面的脚本启动我写的程序 ``` #!/bin/bash IMAGE_URI=wangjia184/network_monitor:20210109 docker rm -f...

when can this be released?

I am using the following code to solve my issue ``` function entryFileNames(chunkInfo) { var matches = /(?:\bsrc[\\|\/])(?.*?[^\\\/]+)(?:\.svelte)$/g.exec(chunkInfo.facadeModuleId); if( matches != null && matches.length > 1 ){ return matches[1] +...

白名单之说是无稽之谈. 之前的v20200928版本没有问题, 是其后版本出问题. 建议搭建CI自动化编译, 从依赖项开始全都在CI上构建, 避免由于编译染毒的可能

@jjl `Box` causes heap allocation too. I think it may leave the choice to caller , to reuse the `inner` after it is received

> an alloc-less api Is that possible? I really doubt that. But if it comes to true, it would outperform tokio's oneshot a lot.

```rust impl prost::Message for BitSet { fn encoded_len(&self) -> usize { let bit_vec = &self.bit_vec; let mut len: usize = 0; let mut tailing_zero = true; for &n in bit_vec.storage().iter().rev()...