class_docstr: Create a PaddleModel instance.
  When you need to generate a adversarial sample, you should construct an
  instance of PaddleModel.
  Args:
      program(paddle.fluid.framework.Program): The program of the model
          which generate the adversarial sample.
      input_name(string): The name of the input.
      logits_name(string): The name of the logits.
      predict_name(string): The name of the predict.
      cost_name(string): The name of the loss in the program.
class_docstr_tok: ["Create","a","PaddleModel","instance",".","When","you","need","to","generate","a","adversarial","sample",",","you","should","construct","an","instance","of","PaddleModel",".","Args",":","program","(","paddle.fluid.framework.Program",")",":","The","program","of","the","model","which","generate","the","adversarial","sample",".","input_name","(","string",")",":","The","name","of","the","input",".","logits_name","(","string",")",":","The","name","of","the","logits",".","predict_name","(","string",")",":","The","name","of","the","predict",".","cost_name","(","string",")",":","The","name","of","the","loss","in","the","program","."]
docstr: Get the predict name, such as "softmax",etc.
  :return: string
docstr_tok: ["Get","the","predict","name",",","such","as","``","softmax","''",",","etc",".",":","return",":","string"]
code: def predict_name(self):
      """
      Get the predict name, such as "softmax",etc.
      :return: string
      """
      return (
          self._predict_program.block(0).var(self._predict_name).op.type
      )
  
file_path: AdvBox/adversarialbox/models/paddleBlackBox.py
imports: from __future__ import absolute_import
  import numpy
  import os
  import paddle.fluid
  from .base import Model
label_desc: Use image node_id 4 for calling the PaddleBlackBoxModel obj's underlying member method code with example usage: obj.predict_name() and returns: self