Skip to content

Commit 34b6b56

Browse files
Avijit/18.1-rc0 (#211)
1 parent 6d2cbd5 commit 34b6b56

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Once TensorFlow's dependencies are installed, clone the `ngraph-bridge` repo:
8888

8989
git clone https://github.com/tensorflow/ngraph-bridge.git
9090
cd ngraph-bridge
91-
git checkout v0.18.0
91+
git checkout v0.18.1-rc0
9292

9393
Run the following Python script to build TensorFlow, nGraph, and the bridge. Use Python 3.5:
9494

@@ -127,8 +127,8 @@ Verify that `ngraph-bridge` installed correctly:
127127
This will produce something like this:
128128

129129
TensorFlow version: <1.14.0>
130-
nGraph bridge version: <b'0.18.0'>
131-
nGraph version used for this build: b'0.25.0+005c118'
130+
nGraph bridge version: <version number>
131+
nGraph version used for this build: b'Version number'
132132
TensorFlow version used for this build: <v1.14.0-...>
133133
CXX11_ABI flag used for this build: 0
134134
nGraph bridge built with Grappler: False

ngraph_bridge/ngraph_freshness_tracker.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace ngraph_bridge {
2626

2727
void NGraphFreshnessTracker::MarkFresh(
2828
const void* base_pointer,
29-
std::shared_ptr<ngraph::runtime::Executable> user) {
29+
const std::shared_ptr<ngraph::runtime::Executable>& user) {
3030
mutex_lock l(mu_);
3131
auto it = freshness_map_.find(base_pointer);
3232
if (it != freshness_map_.end()) {
@@ -36,7 +36,7 @@ void NGraphFreshnessTracker::MarkFresh(
3636

3737
bool NGraphFreshnessTracker::IsFresh(
3838
const void* base_pointer,
39-
std::shared_ptr<ngraph::runtime::Executable> user) {
39+
const std::shared_ptr<ngraph::runtime::Executable>& user) {
4040
mutex_lock l(mu_);
4141
auto it = freshness_map_.find(base_pointer);
4242
if (it == freshness_map_.end()) {
@@ -69,9 +69,9 @@ void NGraphFreshnessTracker::RemoveTensor(const void* base_pointer) {
6969
}
7070

7171
void NGraphFreshnessTracker::RemoveUser(
72-
std::shared_ptr<ngraph::runtime::Executable> user) {
72+
const std::shared_ptr<ngraph::runtime::Executable>& user) {
7373
mutex_lock l(mu_);
74-
for (auto kv : freshness_map_) {
74+
for (auto& kv : freshness_map_) {
7575
kv.second.erase(user);
7676
}
7777
}

ngraph_bridge/ngraph_freshness_tracker.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ class NGraphFreshnessTracker : public ResourceBase {
9595
// If freshness_map_ has the base_pointer, then inserts the user function into
9696
// its set of user functions
9797
void MarkFresh(const void* base_pointer,
98-
std::shared_ptr<ngraph::runtime::Executable> user);
98+
const std::shared_ptr<ngraph::runtime::Executable>& user);
9999

100100
// Checks if the freshness_map_ has the user function for base_pointer, else
101101
// returns false
102102
bool IsFresh(const void* base_pointer,
103-
std::shared_ptr<ngraph::runtime::Executable> user);
103+
const std::shared_ptr<ngraph::runtime::Executable>& user);
104104

105105
// Removes all the functions for the base_pointer in the freshness_map_, i.e.
106106
// sets the set<ng::Function> for base_pointer to empty
@@ -114,7 +114,7 @@ class NGraphFreshnessTracker : public ResourceBase {
114114
void RemoveTensor(const void* base_pointer);
115115

116116
// Removes the user function from the freshness_map_
117-
void RemoveUser(std::shared_ptr<ngraph::runtime::Executable> user);
117+
void RemoveUser(const std::shared_ptr<ngraph::runtime::Executable>& user);
118118

119119
private:
120120
// mutex protecting the freshness_map_

ngraph_bridge/version.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525

2626
#define NG_TF_MAJOR_VERSION 0
2727
#define NG_TF_MINOR_VERSION 18
28-
#define NG_TF_PATCH_VERSION 0
28+
#define NG_TF_PATCH_VERSION 1
2929

3030
// The version suffix is used for pre-release version numbers
3131
// For example before v0.7.0 we may do a pre-release i.e., a release
3232
// candidate such as v0.7.0-rc0
3333
// The code in master will always have the last released version number
3434
// with a suffix of '-master'
35-
#define NG_TF_VERSION_SUFFIX ""
35+
#define NG_TF_VERSION_SUFFIX "rc0"
3636

3737
#define VERSION_STR_HELPER(x) #x
3838
#define VERSION_STR(x) VERSION_STR_HELPER(x)

python/setup.in.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_tag(self):
5959

6060
setup(
6161
name='ngraph_tensorflow_bridge',
62-
version='0.18.0',
62+
version='0.18.1rc0',
6363
description='Intel nGraph compiler and runtime for TensorFlow',
6464
long_description=long_description,
6565
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)