afe.load.importers.caffe ======================== .. py:module:: afe.load.importers.caffe Functions --------- .. autoapisummary:: afe.load.importers.caffe.import_caffe_model afe.load.importers.caffe.validate_input_parameters afe.load.importers.caffe.import_caffe_to_tvm Module Contents --------------- .. py:function:: import_caffe_model(prototxt_file_path: str, caffemodel_file_path: str) Loads in a caffe model from a directory path :param prototxt_file_path: filepath to the caffe .prototxt file :param caffemodel_file_path: filepath to the caffe .caffemodel file .. py:function:: validate_input_parameters(prototxt_file_path: str, caffemodel_file_path: str, shape_dict: Dict[str, Tuple[int, Ellipsis]], dtype_dict: Dict[str, afe.ir.tensor_type.ScalarType]) -> None Validates the user supplied input. :param prototxt_file_path: filepath to the caffe .prototxt file :param caffemodel_file_path: filepath to the caffe .caffemodel file :param shape_dict: dictionary of input names to input shapes (eg. (1,224,224,3)) :param dtype_dict: dictionary of input names to input types (eg. float32 or int64) .. py:function:: import_caffe_to_tvm(prototxt_file_path: str, caffemodel_file_path: str, shape_dict: Dict[str, Tuple[int, Ellipsis]], dtype_dict: Dict[str, afe.ir.tensor_type.ScalarType]) -> afe._tvm._defines.TVMIRModule Use TVM frontend to import a caffe pb model into TVM Relay IR :param prototxt_file_path: filepath to the caffe .prototxt file :param caffemodel_file_path: filepath to the caffe .caffemodel file :param shape_dict: dictionary of input names to input shapes (eg. (1,224,224,3)) :param dtype_dict: dictionary of input names to input types (eg. float32 or int64) :return: Imported TVM IR module.