X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=documentation%2Fclassarm__compute_1_1graph__utils_1_1_p_p_m_writer.xhtml;h=a9bd30a4f88479afb645327ebb74b8615dc5f828;hb=HEAD;hp=198925406471acabf7b2c295c2f06c7bcee04185;hpb=8938bd3f40ea62ff56d6ed4e2db0a8aee34dd64a;p=platform%2Fupstream%2Farmcl.git diff --git a/documentation/classarm__compute_1_1graph__utils_1_1_p_p_m_writer.xhtml b/documentation/classarm__compute_1_1graph__utils_1_1_p_p_m_writer.xhtml index 1989254..a9bd30a 100644 --- a/documentation/classarm__compute_1_1graph__utils_1_1_p_p_m_writer.xhtml +++ b/documentation/classarm__compute_1_1graph__utils_1_1_p_p_m_writer.xhtml @@ -4,7 +4,7 @@ - + Compute Library: PPMWriter Class Reference @@ -12,22 +12,24 @@ + + + @@ -38,7 +40,7 @@
Compute Library -  17.09 +  18.05
@@ -46,7 +48,7 @@ - + @@ -103,7 +105,7 @@ $(document).ready(function(){initNavTree('classarm__compute_1_1graph__utils_1_1_ onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> - All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages +
@@ -127,30 +129,30 @@ $(document).ready(function(){initNavTree('classarm__compute_1_1graph__utils_1_1_
Collaboration diagram for PPMWriter:
-
+
[legend]
- + - + - + - +

Public Member Functions

 PPMWriter (std::string name, unsigned int maximum=1)
 Constructor. More...
 Constructor. More...
 
 PPMWriter (PPMWriter &&)=default
 Allows instances to move constructed. More...
 Allows instances to move constructed. More...
 
bool access_tensor (ITensor &tensor) override
 Interface to be implemented to access a given tensor. More...
 Interface to be implemented to access a given tensor. More...
 
- Public Member Functions inherited from ITensorAccessor
virtual ~ITensorAccessor ()=default
 Default virtual destructor. More...
 Default virtual destructor. More...
 

Detailed Description

PPM writer class.

-

Definition at line 35 of file GraphUtils.h.

+

Definition at line 81 of file GraphUtils.h.

Constructor & Destructor Documentation

@@ -185,11 +187,8 @@ Public Member Functions -

Definition at line 40 of file GraphUtils.cpp.

-
41  : _name(std::move(name)), _iterator(0), _maximum(maximum)
-
42 {
-
43 }
-
+

Definition at line 92 of file GraphUtils.cpp.

+
93  : _name(std::move(name)), _iterator(0), _maximum(maximum)
94 {
95 }
@@ -252,31 +251,10 @@ Public Member Functions

Implements ITensorAccessor.

-

Definition at line 45 of file GraphUtils.cpp.

+

Definition at line 97 of file GraphUtils.cpp.

-

References arm_compute::utils::save_to_ppm().

-
46 {
-
47  std::stringstream ss;
-
48  ss << _name << _iterator << ".ppm";
-
49  if(dynamic_cast<Tensor *>(&tensor) != nullptr)
-
50  {
-
51  arm_compute::utils::save_to_ppm(dynamic_cast<Tensor &>(tensor), ss.str());
-
52  }
-
53 #ifdef ARM_COMPUTE_CL
-
54  else if(dynamic_cast<CLTensor *>(&tensor) != nullptr)
-
55  {
-
56  arm_compute::utils::save_to_ppm(dynamic_cast<CLTensor &>(tensor), ss.str());
-
57  }
-
58 #endif /* ARM_COMPUTE_CL */
-
59 
-
60  _iterator++;
-
61  if(_maximum == 0)
-
62  {
-
63  return true;
-
64  }
-
65  return _iterator < _maximum;
-
66 }
-
void save_to_ppm(T &tensor, const std::string &ppm_filename)
Template helper function to save a tensor image to a PPM file.
Definition: Utils.h:281
+

References arm_compute::utils::save_to_ppm().

+
98 {
99  std::stringstream ss;
100  ss << _name << _iterator << ".ppm";
101 
102  arm_compute::utils::save_to_ppm(tensor, ss.str());
103 
104  _iterator++;
105  if(_maximum == 0)
106  {
107  return true;
108  }
109  return _iterator < _maximum;
110 }
void save_to_ppm(T &tensor, const std::string &ppm_filename)
Template helper function to save a tensor image to a PPM file.
Definition: Utils.h:682
@@ -290,9 +268,9 @@ Public Member Functions