在这段代码之后,我得到了以下的错误:类别焦点丢失I‘m not not whereint64 error is coming def categorical_focal_loss(gamma=2.,/ops/math_ops.py:1164 binary_op_wrapper >/usr/localmul
> "Mul", <
我正在尝试向我的LSTM层发送两个输入。一个是输入向量,另一个是输入掩码。遮罩向量是布尔型,输入向量是浮点型。: Input 'y' of 'Equal' Op has type bool that does not match type float32 of argument 'x'.下面是我所面临的错误的完整回溯 ValueError
TypeError: Input 'y' of 'Add' Op has type float32 that does not match type int32 of argument 'x'.我已经尝试使用tf.cast()来验证张量的类型,但是,根据输出,它似乎没有用,因为根据输出,'re','re2','re3‘和're4’这四个变量的<