Peter Chiang

Results 13 comments of Peter Chiang

目前网上大部分解决方案都失效了,可以使用下面的方法解决: 打开你的blog本地仓库themes\next\layout\_third-party\comments\gitment.ejs将 ``` ``` 修改为: ``` ``` 上面给出的是gitment汉化版

> Maybe this helps: I got it working, only when I stopped using the method-result chaining shortcut syntax: > > > foo = ConjunctiveGraph() > > bar = foo.parse(data=mydoor, format='json-ld')...

目前我在网上找到的最好的解决办法是重写自定义层的get_config方法,例如: ``` class Attention(OurLayer): """多头注意力机制 """ def __init__(self, heads, size_per_head, key_size=None, mask_right=False, **kwargs): super(Attention, self).__init__(**kwargs) self.heads = heads self.size_per_head = size_per_head self.out_dim = heads * size_per_head self.key_size = key_size if...

It's theoretically possible.

Not IP block, It's a bug in the code. If set the language to cn(Chinese), it works fine. Because I used to grab Chinese information, and later changed it to...

This is because of apex cannot import amp_C,you can check the file "G:\Anaconda3\envs\xyy_imagenaire\lib\site-packages\apex\optimizers\fused_adam.py", also you can use your python shell to verify this: ``` import torch import amp_C # must...

In my case, this BUG is due to ninja compile error, you can change directory to `~/.cache/torch_extensions/cpu_adam`, then run `ninja -v` to see the error details.

TInyBert and BERT have a similar architecture, so you can use the BertTokenizer and BertModel to solve this problem. ``` from transformers import BertTokenizer, AutoModel tokenizer = BertTokenizer.from_pretrained("huawei-noah/TinyBERT_4L_zh") model =...

pip install ipip-ipdb

There are null values in the data, just clean up the data.