64064024

Date: 2020-09-25 13:25:36
Score: 6
Natty:
Report link

I ran into a similar problem. Did you manage to solve this problem? I was trying to upgrade my code from Tensorflow 1.x to 2.x.

output = tf.keras.layers.Conv2DTranspose(filters=8, kernel_size=(2, 2), padding='VALID', data_format='channels_first', activation=tf.nn.relu, kernel_initializer=tf.compat.v1.variance_scaling_initializer, kernel_regularizer=None,trainable=train)(input_tensor)

Here I get the error:

AttributeError: '_TfDeviceCaptureOp' object has no attribute 'node_def'

but changing it to 'channels_last' will make the error disappear but that does not work for my network architecture. I know my data format is "NCHW" so it does not fix my problem. My environment is Python 3.7, Tensorflow 2.0.0, Cuda 10.2, Ubuntu 20.04, RTX 2070.

Reasons:
  • RegEx Blacklisted phrase (2): Did you manage to solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2): a similar problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Naeem Iqbal