Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rocAL - Fix C++ tests #119

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rocAL/include/parameters/parameter_simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class SimpleParameter : public Parameter<T> {

void create_array(unsigned array_size) override {
if (param_values.size() == 0) param_values.resize(array_size);
update(_val);
}

~SimpleParameter() = default;
Expand Down
1 change: 1 addition & 0 deletions rocAL/source/pipeline/master_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ MasterGraph::MasterGraph(size_t batch_size, RocalAffinity affinity, size_t cpu_t
_device.init_ocl(_context);
#endif
}
ParameterFactory::instance()->set_seed(0); // Setting default seed for ParameterFactory instance. User can set the seed manually by calling rocalSetSeed(seed_value)
} catch (const std::exception &e) {
release();
throw;
Expand Down
Loading