Commit e69d4712 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

fixing assert in js strategy


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 59600957
Pipeline #77604 passed with stage
in 4 minutes and 51 seconds
......@@ -110,7 +110,7 @@ public:
void compute(std::vector<double> &grad, std::vector<std::shared_ptr<AcceleratorBuffer>> results,
const std::vector<double> &q_dist,
const std::vector<double> &target_dist) override {
assert(grad.size() == 2 * results.size());
assert(2 * grad.size() == results.size());
// Get the number of shosts
int shots = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment