blob: fcd80be9d248028925b1191c78e34ae34df891e6 [file] [log] [blame]
#include "caffe2/contrib/gloo/common.h"
#include "caffe2/core/tensor.h"
namespace caffe2 {
void signalFailure(Blob* status_blob, std::exception& /* unused */) {
auto* res = status_blob->GetMutable<TensorCPU>();
res->Resize(1);
res->template mutable_data<int32_t>()[0] = 1;
}
}