4 #import <Metal/MTLBuffer.h> 5 #import <Metal/MTLDevice.h> 6 #import <Metal/MTLLibrary.h> 12 #include <unordered_map> 19 id<MTLCommandQueue> commandQueue;
20 id<MTLLibrary> library;
22 id<MTLComputePipelineState> getPipelineState(NSString* kernel);
23 id<MTLComputePipelineState> getSpecializedPipelineState(NSString* kernel,
24 const std::vector<ushort>& constants);
27 std::mutex pipelineCacheMutex_;
28 std::unordered_map<std::string, id<MTLComputePipelineState>> pipelineCache_;
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...