Cristiano
Cristiano
 如上图所示,根据执行脚本的设置,图中的这个if条件是不会执行到的, 但是疑问的是:is_evaluate and SquadV1Processor 在哪里引用的,main_bert.py 这个文件没有说明
main_bert.py里的一行代码: apex.amp.register_half_function(torch, "einsum") 我看到网上说的:函数(如einsum)暂不支持FP16加速, 这是怎么肥事? url: https://www.cnblogs.com/sddai/p/14597434.html
提问时请尽可能提供如下信息: ### 基本信息 - 你使用的**操作系统**: linux - 你使用的**Python**版本: python3.6.0 - 你使用的**Tensorflow**版本: 1.15.1 - 你使用的**Keras**版本: 2.3.1 - 你使用的**bert4keras**版本: 0.10.0 - 你使用纯**keras**还是**tf.keras**: - 你加载的**预训练模型**: chinese_L-12_H-768_A-12 ### 核心代码 ```python # 代码是只有data_utils.py 和 pretraining.py...
看了一下main.py的函数,需要几个参数才可以运行起来 python main.py *** *** *** git主有空回复一下啦 还有一个问题,main.py 里报eval_input_fn和eval_steps这两个变量不存在,这是不是跟输入有关?
目前只用了量化版的脚本进行推理,但是不清楚怎么去设置联网 & 插件开关,直接用现有没经过量化的会报错, .index.json没找到