Skip to content
Snippets Groups Projects
Commit b7ea51c4 authored by Maxence Naud's avatar Maxence Naud Committed by Maxence Naud
Browse files

add small changes

parent 2686e346
No related branches found
No related tags found
2 merge requests!318[Upd] release verision 0.5.0,!292upd: remove many warnings at compile time in release mode
......@@ -55,7 +55,7 @@ public:
T* dstT = static_cast<T *>(rawPtr(offset));
AIDGE_ASSERT(dstT < srcT || dstT >= srcT + length, "TensorImpl_cpu<{}>::copy(): overlapping copy is not supported", typeid(T).name());
std::copy(srcT, srcT + length, dstT);
std::copy_n(srcT, length, dstT);
}
void copyCast(const void *src, const DataType srcDt, NbElts_t length, NbElts_t offset = 0) override final;
......
......@@ -11,10 +11,10 @@
#ifndef AIDGE_CORE_GRAPH_CONNECTOR_H_
#define AIDGE_CORE_GRAPH_CONNECTOR_H_
#include <cassert>
#include <memory>
#include <vector>
#include "aidge/utils/ErrorHandling.hpp"
#include "aidge/utils/Types.h"
namespace Aidge {
......@@ -55,7 +55,7 @@ class Connector {
public:
Connector operator[](IOIndex_t index) {
assert((size() > 1) && "Cannot refer a slice of the output.");
AIDGE_ASSERT((size() > 1), "Cannot refer a slice of the output.");
return Connector(mNode, index);
}
......@@ -68,7 +68,7 @@ class Connector {
private:
Connector(std::shared_ptr<Node> node, IOIndex_t index) : mNode(node) {
assert((index != gk_IODefaultIndex) && (index < size()) &&
AIDGE_ASSERT((index != gk_IODefaultIndex) && (index < size()),
"Non-valid output index.\n");
mOutputId = index;
}
......
......@@ -19,7 +19,6 @@
#include <fmt/ranges.h>
#include "aidge/data/half_fmt.hpp"
#include "aidge/utils/Attributes.hpp"
namespace Aidge {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment