Tensorflow 2.3 - AttributeError: 'Tensor' object has no ...
www.reddit.com › r › tensorflowI'm using tensorflow 2.3 and I'm having an issue when i try to call a function that returns a keras.Model . AttributeError: 'Tensor' object has no attribute 'numpy' Tensorflow 2.3. I write here a snippet of my model. inputs = Input (shape= (n_ch, height, width), batch_size=batchSize) conv_1 = Conv2D (16, (5, 5), kernel_initializer='he_normal', padding='same',data_format='channels_first') (inputs) conv_1 = BatchNormalization (axis=1) (conv_1) conv_1 = Activation ("relu") (conv_1) conv_2 = ...