// LoadJITModule loads module from file
LoadJITModule loads module from file
// LoadJITModule loads module from file
func LoadJITModule(path string) (*JITModule, error) {
	cstr := C.CString(path)
	defer C.free(unsafe.Pointer(cstr))
	var cErr C.Torch_Error
	ctx := C.Torch_LoadJITModule(cstr, &cErr)
	if err := checkError(cErr); err != nil {
		return nil, err
	}
	mod := &JITModule{context: ctx}
	runtime.SetFinalizer(mod, (*JITModule).finalize)
	return mod, nil
}
func LoadJITModule ( path string ) ( * JITModule , error ) { cstr := C . CString ( path ) defer C . free ( unsafe . Pointer ( cstr ) ) var cErr C . Torch_Error ctx := C . Torch_LoadJITModule ( cstr , & cErr ) if err := checkError ( cErr ) ; err != nil { return nil , err } mod := & JITModule { context : ctx } runtime . SetFinalizer ( mod , ( * JITModule ) . finalize ) return mod , nil }
LoadJITModule loads module from file
LoadJITModule loads module from file
// TODO handle errors