Traceback (most recent call last):


 "/home/ranger/home/ranger/lizhu/src/art/simba.py", line 93, in <module>

x_adv = attack.generate(x=np.array([target_image]), x_adv_init=x_adv)


 "/home/ranger/tools/anaconda/lib/python3.8/site-packages/art/attacks/attack.py", line 74, in replacement_function

return fdict[func_name](self, *args, **kwargs)


 "/home/ranger/tools/anaconda/lib/python3.8/site-packages/art/attacks/evasion/simba.py", line 139, in generate

indices = self._block_order(x.shape[2], nb_channels, initial_size=self.freq_dim, stride=self.stride)[


 "/home/ranger/tools/anaconda/lib/python3.8/site-packages/art/attacks/evasion/simba.py", line 306, in _block_order

order[:, : (i + stride), i : (i + stride)] = perm[:num_first].reshape((channels, -1, stride))
ValueError: could not broadcast input array from shape (3,301,7) into shape (3,299,5)

Traceback (most recent call last):


 "train.py", line 68, in <module>

env_name, config, upload_dir=args.upload_dir)


 "/Users/pcmoritz/ray/python/ray/rllib/common.py", line 179, in __init__

self._init()


 "/Users/pcmoritz/ray/python/ray/rllib/dqn/dqn.py", line 250, in _init

self.actor = Actor(self.env_creator, self.config, self.logdir)


 "/Users/pcmoritz/ray/python/ray/rllib/dqn/dqn.py", line 118, in __init__

self.dqn_graph = models.DQNGraph(env, config)


 "/Users/pcmoritz/ray/python/ray/rllib/dqn/models.py", line 115, in __init__

self.cur_observations, num_actions, config)


 "/Users/pcmoritz/ray/python/ray/rllib/dqn/models.py", line 14, in _build_q_network

frontend = ModelCatalog.get_model(inputs, 1, config["model"])


 "/Users/pcmoritz/ray/python/ray/rllib/models/catalog.py", line 79, in get_model

return VisionNetwork(inputs, num_outputs, options)


 "/Users/pcmoritz/ray/python/ray/rllib/models/model.py", line 38, in __init__

inputs, num_outputs, options)


 "/Users/pcmoritz/ray/python/ray/rllib/models/visionnet.py", line 30, in _init

return tf.squeeze(fc2, [1, 2]), tf.squeeze(fc1, [1, 2])


 "/Users/pcmoritz/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 2281, in squeeze

return gen_array_ops._squeeze(input, axis, name)


 "/Users/pcmoritz/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/gen_array_ops.py", line 3329, in _squeeze

squeeze_dims=squeeze_dims, name=name)


 "/Users/pcmoritz/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op

op_def=op_def)


 "/Users/pcmoritz/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2508, in create_op

set_shapes_for_outputs(ret)


 "/Users/pcmoritz/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1873, in set_shapes_for_outputs

shapes = shape_func(op)


 "/Users/pcmoritz/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1823, in call_with_requiring

return call_cpp_shape_fn(op, require_shape_fn=True)


 "/Users/pcmoritz/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py", line 610, in call_cpp_shape_fn

debug_python_shape_fn, require_shape_fn)


 "/Users/pcmoritz/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py", line 676, in _call_cpp_shape_fn_impl

raise ValueError(err.message)
ValueError: Can not squeeze dim[1], expected a dimension of 1, got 18 for 'q_func/vision_net/Squeeze' (op: 'Squeeze') with input shapes: [?,18,11,1].
