parameters: (model_name)
return_statement: return filtered_name
docstring: Need to get "garnet_1layer" from "garnet_1layer.json" for loading of data and configuration files
docstring_summary: Need to get "garnet_1layer" from "garnet_1layer.json" for loading of data and configuration files
docstring_tokens: Need to get garnet_1layer from garnet_1layer . json for loading of data and configuration files
function: def _filter_name(model_name):
      """
      Need to get "garnet_1layer" from "garnet_1layer.json" for loading of data and configuration files
      """
      filtered_name = None
  
      if model_name.endswith('.json') or model_name.endswith('.onnx'):
          filtered_name = model_name[:-5]
      elif model_name.endswith('.pt') or model_name.endswith('.pb'):
          filtered_name = model_name[:-3]
  
      return filtered_name
function_tokens: def _filter_name ( model_name ) : filtered_name = None if model_name . endswith ( '.json' ) or model_name . endswith ( '.onnx' ) : filtered_name = model_name [ : - 5 ] elif model_name . endswith ( '.pt' ) or model_name . endswith ( '.pb' ) : filtered_name = model_name [ : - 3 ] return filtered_name