Skip to content

Commit 915b020

Browse files
committed
update to tensorflow v0.7 (actually a little bit ahead)
1 parent ca54bf0 commit 915b020

File tree

2,064 files changed

+26182
-59246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,064 files changed

+26182
-59246
lines changed

example-basic/src/example-basic.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
*
1010
*/
1111

12-
#pragma once
13-
1412
#include "ofMain.h"
1513
#include "ofxMSATensorFlow.h"
1614

example-mnist/src/example-mnist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class ofApp : public ofBaseApp{
8080
mouse_painter.setup(256);
8181

8282
// initialize classifier
83-
init_classifier(false);
83+
init_classifier(true);
8484

8585
ofLogNotice() << "Init successfull";
8686
}

example-trainer/src/example-trainer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ofApp : public ofBaseApp{
7272
public:
7373

7474
// main interface to everything tensorflow
75-
ofxMSATensorFlow msa_tf;
75+
msa::tf::ofxMSATensorFlow msa_tf;
7676

7777
//--------------------------------------------------------------
7878
void setup(){
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repo: 8a21fd850624c931e448cbcfb38168cb2717c790
2+
node: 70505a059011f440b3e6a916317beb6a6f680704
3+
branch: default
4+
latesttag: 3.3-beta1
5+
latesttagdistance: 233
6+
changessincelatesttag: 283

libs/tensorflow/include/external/eigen_archive/eigen-eigen-b45554449873/Eigen/CholmodSupport renamed to libs/tensorflow/include/external/eigen_archive/eigen-eigen-70505a059011/Eigen/CholmodSupport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern "C" {
1919
/** \ingroup Support_modules
2020
* \defgroup CholmodSupport_Module CholmodSupport module
2121
*
22-
* This module provides an interface to the Cholmod library which is part of the <a href="http://www.cise.ufl.edu/research/sparse/SuiteSparse/">suitesparse</a> package.
22+
* This module provides an interface to the Cholmod library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package.
2323
* It provides the two following main factorization classes:
2424
* - class CholmodSupernodalLLT: a supernodal LLT Cholesky factorization.
2525
* - class CholmodDecomposiiton: a general L(D)LT Cholesky factorization with automatic or explicit runtime selection of the underlying factorization method (supernodal or simplicial).

libs/tensorflow/include/external/eigen_archive/eigen-eigen-b45554449873/Eigen/QR renamed to libs/tensorflow/include/external/eigen_archive/eigen-eigen-70505a059011/Eigen/QR

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "src/QR/HouseholderQR.h"
3535
#include "src/QR/FullPivHouseholderQR.h"
3636
#include "src/QR/ColPivHouseholderQR.h"
37+
#include "src/QR/CompleteOrthogonalDecomposition.h"
3738
#ifdef EIGEN_USE_LAPACKE
3839
#include "src/QR/HouseholderQR_MKL.h"
3940
#include "src/QR/ColPivHouseholderQR_MKL.h"

libs/tensorflow/include/external/eigen_archive/eigen-eigen-b45554449873/Eigen/SPQRSupport renamed to libs/tensorflow/include/external/eigen_archive/eigen-eigen-70505a059011/Eigen/SPQRSupport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/** \ingroup Support_modules
1818
* \defgroup SPQRSupport_Module SuiteSparseQR module
1919
*
20-
* This module provides an interface to the SPQR library, which is part of the <a href="http://www.cise.ufl.edu/research/sparse/SuiteSparse/">suitesparse</a> package.
20+
* This module provides an interface to the SPQR library, which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package.
2121
*
2222
* \code
2323
* #include <Eigen/SPQRSupport>

libs/tensorflow/include/external/eigen_archive/eigen-eigen-b45554449873/Eigen/UmfPackSupport renamed to libs/tensorflow/include/external/eigen_archive/eigen-eigen-70505a059011/Eigen/UmfPackSupport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern "C" {
1919
/** \ingroup Support_modules
2020
* \defgroup UmfPackSupport_Module UmfPackSupport module
2121
*
22-
* This module provides an interface to the UmfPack library which is part of the <a href="http://www.cise.ufl.edu/research/sparse/SuiteSparse/">suitesparse</a> package.
22+
* This module provides an interface to the UmfPack library which is part of the <a href="http://www.suitesparse.com">suitesparse</a> package.
2323
* It provides the following factorization class:
2424
* - class UmfPackLU: a multifrontal sequential LU factorization.
2525
*
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,10 @@ class CholmodBase : public SparseSolverBase<Derived>
273273
const Index size = m_cholmodFactor->n;
274274
EIGEN_UNUSED_VARIABLE(size);
275275
eigen_assert(size==b.rows());
276+
277+
// Cholmod needs column-major stoarge without inner-stride, which corresponds to the default behavior of Ref.
278+
Ref<const Matrix<typename Rhs::Scalar,Dynamic,Dynamic,ColMajor> > b_ref(b.derived());
276279

277-
// note: cd stands for Cholmod Dense
278-
Rhs& b_ref(b.const_cast_derived());
279280
cholmod_dense b_cd = viewAsCholmod(b_ref);
280281
cholmod_dense* x_cd = cholmod_solve(CHOLMOD_A, m_cholmodFactor, &b_cd, &m_cholmod);
281282
if(!x_cd)

libs/tensorflow/include/external/eigen_archive/eigen-eigen-b45554449873/Eigen/src/Core/ArrayBase.h renamed to libs/tensorflow/include/external/eigen_archive/eigen-eigen-70505a059011/Eigen/src/Core/ArrayBase.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ template<typename Derived> class ArrayBase
103103
/** Special case of the template operator=, in order to prevent the compiler
104104
* from generating a default operator= (issue hit with g++ 4.1)
105105
*/
106-
EIGEN_DEVICE_FUNC
106+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
107107
Derived& operator=(const ArrayBase& other)
108108
{
109109
internal::call_assignment(derived(), other.derived());
@@ -112,28 +112,28 @@ template<typename Derived> class ArrayBase
112112

113113
/** Set all the entries to \a value.
114114
* \sa DenseBase::setConstant(), DenseBase::fill() */
115-
EIGEN_DEVICE_FUNC
115+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
116116
Derived& operator=(const Scalar &value)
117117
{ Base::setConstant(value); return derived(); }
118118

119-
EIGEN_DEVICE_FUNC
119+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
120120
Derived& operator+=(const Scalar& scalar);
121-
EIGEN_DEVICE_FUNC
121+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
122122
Derived& operator-=(const Scalar& scalar);
123123

124124
template<typename OtherDerived>
125-
EIGEN_DEVICE_FUNC
125+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
126126
Derived& operator+=(const ArrayBase<OtherDerived>& other);
127127
template<typename OtherDerived>
128-
EIGEN_DEVICE_FUNC
128+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
129129
Derived& operator-=(const ArrayBase<OtherDerived>& other);
130130

131131
template<typename OtherDerived>
132-
EIGEN_DEVICE_FUNC
132+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
133133
Derived& operator*=(const ArrayBase<OtherDerived>& other);
134134

135135
template<typename OtherDerived>
136-
EIGEN_DEVICE_FUNC
136+
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
137137
Derived& operator/=(const ArrayBase<OtherDerived>& other);
138138

139139
public:
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
5252
const Scalar
5353
>::type ScalarWithConstIfNotLvalue;
5454

55-
typedef typename internal::ref_selector<ExpressionType>::type NestedExpressionType;
55+
typedef typename internal::ref_selector<ExpressionType>::non_const_type NestedExpressionType;
5656

5757
EIGEN_DEVICE_FUNC
5858
explicit EIGEN_STRONG_INLINE ArrayWrapper(ExpressionType& matrix) : m_expression(matrix) {}
@@ -67,7 +67,7 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
6767
inline Index innerStride() const { return m_expression.innerStride(); }
6868

6969
EIGEN_DEVICE_FUNC
70-
inline ScalarWithConstIfNotLvalue* data() { return m_expression.const_cast_derived().data(); }
70+
inline ScalarWithConstIfNotLvalue* data() { return m_expression.data(); }
7171
EIGEN_DEVICE_FUNC
7272
inline const Scalar* data() const { return m_expression.data(); }
7373

@@ -80,13 +80,13 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
8080
EIGEN_DEVICE_FUNC
8181
inline Scalar& coeffRef(Index rowId, Index colId)
8282
{
83-
return m_expression.const_cast_derived().coeffRef(rowId, colId);
83+
return m_expression.coeffRef(rowId, colId);
8484
}
8585

8686
EIGEN_DEVICE_FUNC
8787
inline const Scalar& coeffRef(Index rowId, Index colId) const
8888
{
89-
return m_expression.const_cast_derived().coeffRef(rowId, colId);
89+
return m_expression.coeffRef(rowId, colId);
9090
}
9191

9292
EIGEN_DEVICE_FUNC
@@ -98,13 +98,13 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
9898
EIGEN_DEVICE_FUNC
9999
inline Scalar& coeffRef(Index index)
100100
{
101-
return m_expression.const_cast_derived().coeffRef(index);
101+
return m_expression.coeffRef(index);
102102
}
103103

104104
EIGEN_DEVICE_FUNC
105105
inline const Scalar& coeffRef(Index index) const
106106
{
107-
return m_expression.const_cast_derived().coeffRef(index);
107+
return m_expression.coeffRef(index);
108108
}
109109

110110
template<int LoadMode>
@@ -116,7 +116,7 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
116116
template<int LoadMode>
117117
inline void writePacket(Index rowId, Index colId, const PacketScalar& val)
118118
{
119-
m_expression.const_cast_derived().template writePacket<LoadMode>(rowId, colId, val);
119+
m_expression.template writePacket<LoadMode>(rowId, colId, val);
120120
}
121121

122122
template<int LoadMode>
@@ -128,7 +128,7 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
128128
template<int LoadMode>
129129
inline void writePacket(Index index, const PacketScalar& val)
130130
{
131-
m_expression.const_cast_derived().template writePacket<LoadMode>(index, val);
131+
m_expression.template writePacket<LoadMode>(index, val);
132132
}
133133

134134
template<typename Dest>
@@ -145,11 +145,11 @@ class ArrayWrapper : public ArrayBase<ArrayWrapper<ExpressionType> >
145145
/** Forwards the resizing request to the nested expression
146146
* \sa DenseBase::resize(Index) */
147147
EIGEN_DEVICE_FUNC
148-
void resize(Index newSize) { m_expression.const_cast_derived().resize(newSize); }
148+
void resize(Index newSize) { m_expression.resize(newSize); }
149149
/** Forwards the resizing request to the nested expression
150150
* \sa DenseBase::resize(Index,Index)*/
151151
EIGEN_DEVICE_FUNC
152-
void resize(Index rows, Index cols) { m_expression.const_cast_derived().resize(rows,cols); }
152+
void resize(Index rows, Index cols) { m_expression.resize(rows,cols); }
153153

154154
protected:
155155
NestedExpressionType m_expression;
@@ -195,7 +195,7 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> >
195195
const Scalar
196196
>::type ScalarWithConstIfNotLvalue;
197197

198-
typedef typename internal::ref_selector<ExpressionType>::type NestedExpressionType;
198+
typedef typename internal::ref_selector<ExpressionType>::non_const_type NestedExpressionType;
199199

200200
EIGEN_DEVICE_FUNC
201201
explicit inline MatrixWrapper(ExpressionType& matrix) : m_expression(matrix) {}
@@ -210,7 +210,7 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> >
210210
inline Index innerStride() const { return m_expression.innerStride(); }
211211

212212
EIGEN_DEVICE_FUNC
213-
inline ScalarWithConstIfNotLvalue* data() { return m_expression.const_cast_derived().data(); }
213+
inline ScalarWithConstIfNotLvalue* data() { return m_expression.data(); }
214214
EIGEN_DEVICE_FUNC
215215
inline const Scalar* data() const { return m_expression.data(); }
216216

@@ -223,7 +223,7 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> >
223223
EIGEN_DEVICE_FUNC
224224
inline Scalar& coeffRef(Index rowId, Index colId)
225225
{
226-
return m_expression.const_cast_derived().coeffRef(rowId, colId);
226+
return m_expression.coeffRef(rowId, colId);
227227
}
228228

229229
EIGEN_DEVICE_FUNC
@@ -241,13 +241,13 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> >
241241
EIGEN_DEVICE_FUNC
242242
inline Scalar& coeffRef(Index index)
243243
{
244-
return m_expression.const_cast_derived().coeffRef(index);
244+
return m_expression.coeffRef(index);
245245
}
246246

247247
EIGEN_DEVICE_FUNC
248248
inline const Scalar& coeffRef(Index index) const
249249
{
250-
return m_expression.const_cast_derived().coeffRef(index);
250+
return m_expression.coeffRef(index);
251251
}
252252

253253
template<int LoadMode>
@@ -259,7 +259,7 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> >
259259
template<int LoadMode>
260260
inline void writePacket(Index rowId, Index colId, const PacketScalar& val)
261261
{
262-
m_expression.const_cast_derived().template writePacket<LoadMode>(rowId, colId, val);
262+
m_expression.template writePacket<LoadMode>(rowId, colId, val);
263263
}
264264

265265
template<int LoadMode>
@@ -271,7 +271,7 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> >
271271
template<int LoadMode>
272272
inline void writePacket(Index index, const PacketScalar& val)
273273
{
274-
m_expression.const_cast_derived().template writePacket<LoadMode>(index, val);
274+
m_expression.template writePacket<LoadMode>(index, val);
275275
}
276276

277277
EIGEN_DEVICE_FUNC
@@ -284,11 +284,11 @@ class MatrixWrapper : public MatrixBase<MatrixWrapper<ExpressionType> >
284284
/** Forwards the resizing request to the nested expression
285285
* \sa DenseBase::resize(Index) */
286286
EIGEN_DEVICE_FUNC
287-
void resize(Index newSize) { m_expression.const_cast_derived().resize(newSize); }
287+
void resize(Index newSize) { m_expression.resize(newSize); }
288288
/** Forwards the resizing request to the nested expression
289289
* \sa DenseBase::resize(Index,Index)*/
290290
EIGEN_DEVICE_FUNC
291-
void resize(Index rows, Index cols) { m_expression.const_cast_derived().resize(rows,cols); }
291+
void resize(Index rows, Index cols) { m_expression.resize(rows,cols); }
292292

293293
protected:
294294
NestedExpressionType m_expression;

0 commit comments

Comments
 (0)