Fix RegNet when input_tensor is given
@@ -951,7 +951,7 @@ def RegNet(
img_input = input_tensor
if input_tensor is not None:
- inputs = layer_utils.get_source_inputs(input_tensor)
+ inputs = layer_utils.get_source_inputs(input_tensor)[0]
else:
inputs = img_input
