HomeSort by relevance Sort by last modified time
    Searched refs:tensor_util (Results 1 - 25 of 140) sorted by null

1 2 3 4 5 6

  /external/tensorflow/tensorflow/python/autograph/utils/
type_check.py 21 from tensorflow.python.framework import tensor_util
33 return any(tensor_util.is_tensor(a) for a in args)
tensors.py 27 from tensorflow.python.framework import tensor_util
40 return (tensor_util.is_tensor(t) and t.dtype == dtypes.variant and
py_func.py 24 from tensorflow.python.framework import tensor_util
73 arg_is_tensor = tuple(map(tensor_util.is_tensor, args))
93 kwarg_is_tensor = {k: tensor_util.is_tensor(kwargs[k]) for k in kwarg_keys}
  /external/tensorflow/tensorflow/contrib/util/
__init__.py 33 from tensorflow.python.framework.tensor_util import constant_value
34 from tensorflow.python.framework.tensor_util import make_tensor_proto
35 from tensorflow.python.framework.tensor_util import MakeNdarray as make_ndarray
  /external/tensorflow/tensorflow/python/framework/
tensor_util_test.py 15 """Functional tests for tensor_util."""
28 from tensorflow.python.framework import tensor_util
41 t = tensor_util.make_tensor_proto(value)
47 a = tensor_util.MakeNdarray(t)
52 t = tensor_util.make_tensor_proto([10.0, 20.0, 30.0])
65 a = tensor_util.MakeNdarray(t)
70 t = tensor_util.make_tensor_proto([10.0, 20.0, 30.0], dtype=dtypes.float32)
83 a = tensor_util.MakeNdarray(t)
88 t = tensor_util.make_tensor_proto([10, 20, 30], dtype=dtypes.float32)
101 a = tensor_util.MakeNdarray(t
    [all...]
smart_cond.py 23 from tensorflow.python.framework import tensor_util
79 pred_value = tensor_util.constant_value(pred)
80 # TODO(skyewm): consider folding this into tensor_util.constant_value.
  /external/tensorflow/tensorflow/python/distribute/
summary_op_util.py 24 from tensorflow.python.framework import tensor_util
47 replica_id = tensor_util.constant_value(replica_id)
  /external/tensorflow/tensorflow/contrib/framework/python/framework/
tensor_util_test.py 15 """tensor_util tests."""
26 from tensorflow.contrib.framework.python.framework import tensor_util
62 self.assertEqual(21, tensor_util.reduce_sum_n([a, b, c]).eval())
68 tensor_util.assert_scalar_int(constant_op.constant(3, dtype=dtypes.int32))
69 tensor_util.assert_scalar_int(constant_op.constant(3, dtype=dtypes.int64))
70 tensor_util.assert_scalar_int(3)
72 tensor_util.assert_scalar_int(
76 tensor_util.assert_scalar_int(
86 self.assertRaises(ValueError, tensor_util.with_shape, unexpected_shape,
94 tensor_util.with_shape
    [all...]
__init__.py 25 from tensorflow.contrib.framework.python.framework.tensor_util import *
tensor_util.py 27 from tensorflow.python.framework import tensor_util
48 is_tensor = tensor_util.is_tensor
252 if tensor_util.is_tensor(expected_shape):
278 or tensor_util.is_tensor(expected_shape)):
280 if (not tensor_util.is_tensor(expected_shape)
286 if not tensor_util.is_tensor(expected_shape):
290 if (not tensor_util.is_tensor(expected_shape) and
  /external/tensorflow/tensorflow/python/autograph/operators/
logical.py 23 from tensorflow.python.framework import tensor_util
35 if tensor_util.is_tensor(a):
53 if tensor_util.is_tensor(a_val):
72 if tensor_util.is_tensor(a_val):
90 if tensor_util.is_tensor(a) or tensor_util.is_tensor(b):
exceptions.py 21 from tensorflow.python.framework import tensor_util
56 if tensor_util.is_tensor(expression1):
py_builtins.py 31 from tensorflow.python.framework import tensor_util
50 if tensor_util.is_tensor(x):
64 if tensor_util.is_tensor(x):
81 if tensor_util.is_tensor(x):
107 elif tensor_util.is_tensor(s):
166 if any(tensor_util.is_tensor(o) for o in objects):
186 vals = tuple(v.numpy() if tensor_util.is_tensor(v) else v for v in vals)
200 if any(tensor_util.is_tensor(s) for s in (start_or_stop, stop, step)):
slices.py 24 from tensorflow.python.framework import tensor_util
58 elif tensor_util.is_tensor(target):
118 elif tensor_util.is_tensor(target):
  /external/tensorflow/tensorflow/python/autograph/lang/
special_functions.py 28 from tensorflow.python.framework import tensor_util
35 if tensor_util.is_tensor(elements):
52 if tensor_util.is_tensor(like_value):
special_functions_test.py 26 from tensorflow.python.framework import tensor_util
38 self.assertTrue(tensor_util.is_tensor(tensor_one))
107 tensor_util.is_tensor(
  /external/tensorflow/tensorflow/python/ops/signal/
util_ops.py 24 from tensorflow.python.framework import tensor_util
59 const_a = tensor_util.constant_value(a)
60 const_b = tensor_util.constant_value(b)
  /external/tensorflow/tensorflow/tools/graph_transforms/python/
transform_graph_test.py 24 from tensorflow.python.framework import tensor_util
43 attr_value_pb2.AttrValue(tensor=tensor_util.make_tensor_proto(
52 attr_value_pb2.AttrValue(tensor=tensor_util.make_tensor_proto(
  /external/tensorflow/tensorflow/contrib/gan/python/features/python/
conditioning_utils_impl.py 27 from tensorflow.python.framework import tensor_util
42 static_tensor_shape = tensor_util.constant_value(tensor_shape)
  /external/tensorflow/tensorflow/contrib/nn/python/ops/
alpha_dropout.py 23 from tensorflow.python.framework import tensor_util
67 if tensor_util.constant_value(keep_prob) == 1:
  /external/tensorflow/tensorflow/python/kernel_tests/
summary_v1_tensor_op_test.py 27 from tensorflow.python.framework import tensor_util
74 n = tensor_util.MakeNdarray(value.tensor)
85 n = tensor_util.MakeNdarray(value.tensor)
94 n = tensor_util.MakeNdarray(value.tensor)
104 n = tensor_util.MakeNdarray(value.tensor)
115 n = tensor_util.MakeNdarray(value.tensor)
  /external/tensorflow/tensorflow/contrib/distributions/python/ops/
shape.py 24 from tensorflow.python.framework import tensor_util
282 ndims = tensor_util.constant_value(ndims)
328 start = sum(tensor_util.constant_value(s) for s in start_sum)
329 stop = start + tensor_util.constant_value(size)
361 start = sum(tensor_util.constant_value(s) for s in start_sum)
362 stop = start + tensor_util.constant_value(size)
479 return all(tensor_util.constant_value(x) is not None for x in args)
486 x_value_static = tensor_util.constant_value(x)
504 return (tensor_util.constant_value(ndims),
505 tensor_util.constant_value(ndims) == 0
    [all...]
  /external/tensorflow/tensorflow/python/ops/distributions/
transformed_distribution.py 25 from tensorflow.python.framework import tensor_util
47 return tensor_util.constant_value(ops.convert_to_tensor(x))
285 tensor_util.constant_value(self._override_batch_shape) is None or
286 tensor_util.constant_value(self._override_batch_shape).size != 0)
294 tensor_util.constant_value(self._override_event_shape) is None or
295 tensor_util.constant_value(self._override_event_shape).size != 0)
355 static_override = tensor_util.constant_value_as_shape(
378 static_override = tensor_util.constant_value_as_shape(
588 if tensor_util.constant_value(override_is_scalar):
601 if tensor_util.constant_value(override_shape) is not None
    [all...]
  /external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
distribution_test.py 25 from tensorflow.python.framework import tensor_util
90 self.assertTrue(tensor_util.constant_value(normal.is_scalar_event()))
91 self.assertTrue(tensor_util.constant_value(normal.is_scalar_batch()))
94 self.assertTrue(tensor_util.constant_value(normal.is_scalar_event()))
95 self.assertFalse(tensor_util.constant_value(normal.is_scalar_batch()))
98 self.assertFalse(tensor_util.constant_value(mvn.is_scalar_event()))
99 self.assertTrue(tensor_util.constant_value(mvn.is_scalar_batch()))
102 self.assertFalse(tensor_util.constant_value(mvn.is_scalar_event()))
103 self.assertFalse(tensor_util.constant_value(mvn.is_scalar_batch()))
  /external/tensorflow/tensorflow/python/ops/
weights_broadcast_ops.py 26 from tensorflow.python.framework import tensor_util
86 weights_rank_static = tensor_util.constant_value(weights_rank)
92 values_rank_static = tensor_util.constant_value(values_rank)
104 weights_shape_static = tensor_util.constant_value(weights_shape)
105 values_shape_static = tensor_util.constant_value(values_shape)

Completed in 722 milliseconds

1 2 3 4 5 6