class_docstr: Represent a specific plan cache for a specific `device_index`.
  
  The attributes `size` and `max_size`, and method `clear`, can fetch and/ or
  change properties of the C++ cuFFT plan cache.
class_docstr_tok: ["Represent","a","specific","plan","cache","for","a","specific","`","device_index","`",".","The","attributes","`","size","`","and","`","max_size","`",",","and","method","`","clear","`",",","can","fetch","and\/","or","change","properties","of","the","C++","cuFFT","plan","cache","."]
code: def clear(self):
      return torch._cufft_clear_plan_cache(self.device_index)
  
imports: import contextlib
  from typing import Union
  import torch
  from torch._C import _SDPAParams, _SDPBackend
label_desc: Use image node_id 2 for calling the cuFFTPlanCache obj's underlying member method code with example usage: obj.clear() and returns: torch