- 博客(3)
- 收藏
- 关注
原创 ImportError: Module “drf_yasg.generators“ does not define a “OpenAPISchemaGenerator“ attribute/class
ImportError: Could not import 'drf_yasg.generators.OpenAPISchemaGenerator' for API setting 'DEFAULT_GENERATOR_CLASS'. ImportError: Module "drf_yasg.generators" does not define a "OpenAPISchemaGenerator" attribute/class.
2022-09-23 21:51:29
1346
1
原创 TypeError: Input ‘y‘ of ‘Sub‘ Op has type int32 that does not match type float32 of argument ‘x‘.
这是我在用keras做神经网络自定义损失函数loss时遇到的问题,代码如下:import tensorflow as tffrom sklearn import datasetsimport numpy as npfrom keras import backend as Kx_train = datasets.load_iris().datay_train = datasets.load_iris().targetnp.random.seed(116)np.random.shuffl
2021-10-03 00:33:47
3970
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人