"git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "b30755eef250d6a8b63cb1ba4e531f79fc3dd452"
Commit c191b376 authored by Davis King's avatar Davis King
Browse files

Made alias_tensor take a default offset of 0 so you can easily use it to

reshape a tensor.
parent 546bdf51
......@@ -617,7 +617,7 @@ namespace dlib
alias_tensor_instance operator() (
tensor& t,
size_t offset
size_t offset = 0
) const
{
DLIB_CASSERT(offset+size() <= t.size(),
......@@ -642,7 +642,7 @@ namespace dlib
alias_tensor_const_instance operator() (
const tensor& t,
size_t offset
size_t offset = 0
) const
{
alias_tensor_const_instance temp;
......
......@@ -680,7 +680,7 @@ namespace dlib
alias_tensor_instance operator() (
tensor& t,
size_t offset
size_t offset = 0
) const;
/*!
requires
......@@ -701,7 +701,7 @@ namespace dlib
alias_tensor_const_instance operator() (
const tensor& t,
size_t offset
size_t offset = 0
) const;
/*!
requires
......
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