|
AttributeError: 'Tensor' object has no attribute '_keras_shape'
https://www.tensorflow.org/api_docs/python/tf/keras
_keras_shape换成_shape_val即可
输入的特征图: <class 'tensorflow.python.framework.ops.Tensor'>
input_feature_map.__dict__ 打印python对象的所有属性
{'_op': <tf.Operation 'boxes4/BiasAdd' type=BiasAdd>,
'_value_ind '_dtype': tf.float32,
'_tf_output': <tensorflow.python.pywrap_tensorflow_internal.TF_Output;
proxy of <Swig Object of type 'TF_Output *' at 0x7fb946da1360> >,
'_shape_val': TensorShape([Dimension(None), Dimension(37), Dimension(60), Dimension(24)]),
'_consumers': [], '_id': 825, '_name': None,
'_keras_history': KerasHistory(layer=<tensorflow.python.keras.layers.convolutional.Conv2D object at 0x7fb946d8e2e8>,
node_index=0, tensor_index=0), '_keras_mask': None}
|
|