mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-09 13:57:54 -05:00
Update resnet paths
This commit is contained in:
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@@ -723,7 +723,7 @@ namespace iree {
|
|||||||
extern "C" int iree_main(int argc, char** argv) {
|
extern "C" int iree_main(int argc, char** argv) {
|
||||||
|
|
||||||
fprintf(stdout, "starting yo\n");
|
fprintf(stdout, "starting yo\n");
|
||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// Create a window.
|
// Create a window.
|
||||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) != 0) {
|
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) != 0) {
|
||||||
@@ -747,7 +747,7 @@ extern "C" int iree_main(int argc, char** argv) {
|
|||||||
abort();
|
abort();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup Vulkan
|
// Setup Vulkan
|
||||||
iree_hal_vulkan_features_t iree_vulkan_features =
|
iree_hal_vulkan_features_t iree_vulkan_features =
|
||||||
static_cast<iree_hal_vulkan_features_t>(
|
static_cast<iree_hal_vulkan_features_t>(
|
||||||
@@ -898,10 +898,10 @@ extern "C" int iree_main(int argc, char** argv) {
|
|||||||
iree_allocator_system(), &hal_module));
|
iree_allocator_system(), &hal_module));
|
||||||
|
|
||||||
|
|
||||||
// Load bytecode module
|
// Load bytecode module
|
||||||
iree_file_toc_t module_file_toc;
|
iree_file_toc_t module_file_toc;
|
||||||
const char network_model[] = "amd-resnet50.vmfb";
|
const char network_model[] = "resnet50_tf.vmfb";
|
||||||
fprintf(stdout, "Loading: %s\n", network_model);
|
fprintf(stdout, "Loading: %s\n", network_model);
|
||||||
if (load_file(network_model, &module_file_toc.data, &module_file_toc.size) == false)
|
if (load_file(network_model, &module_file_toc.data, &module_file_toc.size) == false)
|
||||||
{
|
{
|
||||||
abort();
|
abort();
|
||||||
@@ -967,7 +967,7 @@ extern "C" int iree_main(int argc, char** argv) {
|
|||||||
|
|
||||||
// Lookup the entry point function.
|
// Lookup the entry point function.
|
||||||
iree_vm_function_t main_function;
|
iree_vm_function_t main_function;
|
||||||
const char kMainFunctionName[] = "module.predict";
|
const char kMainFunctionName[] = "module.forward";
|
||||||
IREE_CHECK_OK(iree_vm_context_resolve_function(
|
IREE_CHECK_OK(iree_vm_context_resolve_function(
|
||||||
iree_context,
|
iree_context,
|
||||||
iree_string_view_t{kMainFunctionName, sizeof(kMainFunctionName) - 1},
|
iree_string_view_t{kMainFunctionName, sizeof(kMainFunctionName) - 1},
|
||||||
@@ -975,7 +975,7 @@ extern "C" int iree_main(int argc, char** argv) {
|
|||||||
iree_string_view_t main_function_name = iree_vm_function_name(&main_function);
|
iree_string_view_t main_function_name = iree_vm_function_name(&main_function);
|
||||||
fprintf(stdout, "Resolved main function named '%.*s'\n",
|
fprintf(stdout, "Resolved main function named '%.*s'\n",
|
||||||
(int)main_function_name.size, main_function_name.data);
|
(int)main_function_name.size, main_function_name.data);
|
||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
// Write inputs into mappable buffers.
|
// Write inputs into mappable buffers.
|
||||||
|
|||||||
Reference in New Issue
Block a user