Unverified Commit f02353b1 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

Merge pull request #3892 from NervanaSystems/gwenger/deprecate_copy_from

Deprecate runtime::Tensor::copy_from
parents 9964913d 687e458f
......@@ -105,7 +105,9 @@ namespace ngraph
/// \brief copy bytes directly from source to this tensor
/// \param source The source tensor
virtual void copy_from(const ngraph::runtime::Tensor& source);
virtual void copy_from(const ngraph::runtime::Tensor& source) NGRAPH_DEPRECATED(
"Allocate buf_ptr with size=get_size_in_bytes(), then use source.read(buf_ptr, "
"size) followed by this->write(buf_ptr, size)");
protected:
std::shared_ptr<ngraph::descriptor::Tensor> m_descriptor;
......
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