docstr: This function is used to set the permutation saving related parameters in ASP class and inside of the Permutation class.
docstr_tok: ["This","function","is","used","to","set","the","permutation","saving","related","parameters","in","ASP","class","and","inside","of","the","Permutation","class","."]
code: def set_permutation_saving_params(
      cls,
      allow_permutation=True,
      save_permutation_graph=False,
      permutation_output_dir=".",
  ):
      """This function is used to set the permutation saving related parameters in ASP class and inside of the Permutation class."""
      print(
          "\n[ASP][set_permutation_saving_param] Set permutation saving related parameters"
      )
      print(
          "\n[set_permutation_saving_param] Set permutation saving related parameters"
      )
      cls.__allow_permutation = allow_permutation
      print(
          "[set_permutation_saving_param]\t Allow permutation: {}".format(
              cls.__allow_permutation
          )
      )
      cls.__save_permutation_graph = save_permutation_graph
      print(
          "[set_permutation_saving_param]\t Save permutation graphs: {}".format(
              cls.__save_permutation_graph
          )
      )
      cls.__permutation_output_dir = permutation_output_dir
      print(
          "[set_permutation_saving_param]\t Permutation graphs saving dir: {}".format(
              cls.__permutation_output_dir
          )
      )
  
      Permutation.set_permutation_saving_params(
          allow_permutation,
          save_permutation_graph,
          permutation_output_dir,
      )
  
file_path: apex/apex/contrib/sparsity/asp.py
imports: import types
  import torch
  from .sparse_masklib import create_mask
  from .permutation_lib import Permutation
  import json
  import os
  import string
  import time
label_desc: Use image node_id 8 for calling the ASP obj's underlying member method code with example usage: obj.set_permutation_saving_params(cls, allow_permutation, save_permutation_graph, permutation_output_dir) without return types