Home
last modified time | relevance | path

Searched refs:shape_tensor (Results 1 – 25 of 58) sorted by relevance

123

/external/tensorflow/tensorflow/python/ops/
Drandom_ops.py74 shape_tensor = _ShapeTensor(shape)
79 shape_tensor, dtype, seed=seed1, seed2=seed2)
124 shape_tensor = _ShapeTensor(shape)
131 shape_tensor,
173 shape_tensor = _ShapeTensor(shape)
178 shape_tensor, dtype, seed=seed1, seed2=seed2)
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/testutil/
Dbatch_features_testutil.cc74 auto shape_tensor = Tensor(tensorflow::DT_INT64, {2}); in RandomlyInitializeBatchFeatures() local
75 tensorflow::test::FillValues<int64>(&shape_tensor, {batch_size, 1}); in RandomlyInitializeBatchFeatures()
76 sparse_float_feature_shapes_list.push_back(shape_tensor); in RandomlyInitializeBatchFeatures()
/external/tensorflow/tensorflow/lite/kernels/
Dtranspose_conv.cc74 const TfLiteTensor* shape_tensor, in ResizeOutputTensor() argument
77 if (shape_tensor->type != kTfLiteInt32) { in ResizeOutputTensor()
79 shape_tensor->type); in ResizeOutputTensor()
83 TfLiteIntArray* shape = TfLiteIntArrayCreate(NumElements(shape_tensor)); in ResizeOutputTensor()
85 shape->data[i] = GetTensorData<int32_t>(shape_tensor)[i]; in ResizeOutputTensor()
/external/tensorflow/tensorflow/core/kernels/
Dparameterized_truncated_normal_op.cc329 const Tensor& shape_tensor = ctx->input(0); in Compute() local
336 ctx, TensorShapeUtils::IsVector(shape_tensor.shape()), in Compute()
338 shape_tensor.shape().DebugString())); in Compute()
339 int32 num_batches = shape_tensor.flat<int32>()(0); in Compute()
342 const int32 num_dims = shape_tensor.dim_size(0); in Compute()
344 samples_per_batch *= shape_tensor.flat<int32>()(i); in Compute()
349 auto shape_vec = shape_tensor.flat<int32>(); in Compute()
Dbroadcast_to_op.cc44 const Tensor& shape_tensor = ctx->input(1); in Compute() local
48 ctx->op_kernel().MakeShape(shape_tensor, &output_shape)); in Compute()
Dsparse_conditional_accumulator.h442 Tensor* shape_tensor; in ReturnShapeTensor() local
444 ctx, ctx->allocate_output(2, {accum_val_dims}, &shape_tensor)); in ReturnShapeTensor()
449 shape_tensor->flat<int64>()(0) = in ReturnShapeTensor()
452 shape_tensor->flat<int64>()(i) = accum_val_->dim_size(i); in ReturnShapeTensor()
/external/tensorflow/tensorflow/core/kernels/fuzzing/
Dscatter_nd_fuzz.cc56 Tensor shape_tensor(tensorflow::DT_INT32, in FuzzImpl() local
66 auto flat_shape = shape_tensor.flat<int32>(); in FuzzImpl()
124 {"shape", shape_tensor}}); in FuzzImpl()
/external/tensorflow/tensorflow/python/ops/linalg/
Dlinear_operator.py280 def shape_tensor(self, name="shape_tensor"): member in LinearOperator
296 return linear_operator_util.shape_tensor(self.shape.as_list())
331 return linear_operator_util.shape_tensor(
334 return self.shape_tensor()[:-2]
371 return array_ops.size(self.shape_tensor())
410 return self.shape_tensor()[-1]
449 return self.shape_tensor()[-2]
Dlinear_operator_zeros.py199 self._num_rows = linear_operator_util.shape_tensor(
206 self._num_columns = linear_operator_util.shape_tensor(
224 self._batch_shape_arg = linear_operator_util.shape_tensor(
441 return math_ops.reduce_min(self.shape_tensor()[-2:])
Dlinear_operator_identity.py87 return math_ops.reduce_min(self.shape_tensor()[-2:])
276 self._num_rows = linear_operator_util.shape_tensor(
284 self._batch_shape_arg = linear_operator_util.shape_tensor(
618 self._num_rows = linear_operator_util.shape_tensor(
/external/tensorflow/tensorflow/contrib/libsvm/kernels/
Ddecode_libsvm_op.cc125 Tensor* shape_tensor; in Compute() local
128 &shape_tensor)); in Compute()
129 auto shape = shape_tensor->flat<int64>(); in Compute()
/external/tensorflow/tensorflow/contrib/coder/kernels/
Drange_coder_ops_test.cc320 Tensor shape_tensor{DT_INT32, {3}}; in TEST_F() local
323 shape_tensor.flat<int32>().setValues({4, 6, 8}); in TEST_F()
327 Node* shape = test::graph::Constant(&g, shape_tensor); in TEST_F()
474 Tensor shape_tensor{DT_INT32, {shape.dims()}}; in CreateRangeDecodeFullBroadcastGraph() local
476 shape_tensor.flat<int32>()(i) = shape.dim_size(i); in CreateRangeDecodeFullBroadcastGraph()
482 .Input(test::graph::Constant(g, shape_tensor)) in CreateRangeDecodeFullBroadcastGraph()
/external/tensorflow/tensorflow/python/kernel_tests/linalg/
Dlinear_operator_low_rank_update_test.py285 shape_tensor = operator.shape_tensor().eval(feed_dict=feed_dict)
286 self.assertAllEqual([2, 3, 3], shape_tensor)
Dlinear_operator_composition_test.py200 self.assertAllEqual((2, 3, 5), operator.shape_tensor().eval())
217 (1, 2, 3, 5), operator.shape_tensor().eval(feed_dict=feed_dict))
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.linalg.-linear-operator-identity.pbtxt124 name: "shape_tensor"
125 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-kronecker.pbtxt127 name: "shape_tensor"
128 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-zeros.pbtxt123 name: "shape_tensor"
124 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-block-diag.pbtxt127 name: "shape_tensor"
128 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-lower-triangular.pbtxt123 name: "shape_tensor"
124 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-scaled-identity.pbtxt128 name: "shape_tensor"
129 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-full-matrix.pbtxt123 name: "shape_tensor"
124 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-composition.pbtxt127 name: "shape_tensor"
128 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.linalg.-linear-operator-inversion.pbtxt127 name: "shape_tensor"
128 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-scaled-identity.pbtxt128 name: "shape_tensor"
129 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "
Dtensorflow.linalg.-linear-operator-identity.pbtxt124 name: "shape_tensor"
125 argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'shape_tensor\'], "

123