assert self.y is not None, error
// Define batch_eval function common to both backends
eval_params = {"batch_size": params["batch_size"]}
if self.back == "tf":
from .utils_tf import batch_eval
After Change
input_shape = list(X.shape)
input_shape[0] = None
self._x = tf.placeholder(tf.float32, shape=input_shape)
self._x_adv = self.generate(self._x)
// Run symbolic graph without or with true labels
if params["Y"] is None:
feed_dict = {self._x: X}