Skip to content

Commit

Permalink
Automated rollback of change 136214096
Browse files Browse the repository at this point in the history
Change: 136224169
  • Loading branch information
rohan100jain authored and tensorflower-gardener committed Oct 15, 2016
1 parent 4f7284a commit fd543db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion tensorflow/core/kernels/constant_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ class FillOp : public OpKernel {

#define REGISTER_CPU_KERNEL(TYPE) REGISTER_KERNEL(CPU, TYPE)
TF_CALL_ALL_TYPES(REGISTER_CPU_KERNEL);
REGISTER_KERNEL(CPU, quint8);
#undef REGISTER_CPU_KERNEL

#if GOOGLE_CUDA
Expand Down
9 changes: 0 additions & 9 deletions tensorflow/python/kernel_tests/constant_op_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,6 @@ def testFillComplex128(self):
np_ans = np.array([[0.15] * 3] * 2).astype(np.complex128)
self._compare([2, 3], np_ans[0][0], np_ans, use_gpu=False)

def testFillQUint8(self):
np_ans = np.array([[42] * 3] * 2).astype(np.uint8)
with self.test_session(use_gpu=False):
val = tf.placeholder(dtype=tf.quint8, shape=())
tf_ans = tf.fill([2,3], val, name="fill")
out = tf_ans.eval(
feed_dict={val: np.array([42]).reshape([]).astype(np.uint8)})
self.assertAllClose(np_ans, out)

def testFillString(self):
np_ans = np.array([[b"yolo"] * 3] * 2)
with self.test_session(use_gpu=False):
Expand Down

0 comments on commit fd543db

Please sign in to comment.