def get_frameworks():
 frameworks = [caffe]
 if torch:
  frameworks.append(torch)
 return frameworks

def get_frameworks ( ) : frameworks = [ caffe ] if torch : frameworks . append ( torch ) return frameworks
return list of all available framework instances there may be more than one instance per framework class .