Home
last modified time | relevance | path

Searched refs:tshape (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/
Dliteral_util.cc36 const auto& tshape = host_tensor.shape(); in HostTensorToBorrowingLiteral() local
37 TF_RET_CHECK(tshape.IsFullyDefined() && in HostTensorToBorrowingLiteral()
38 tshape.dims() == xla_shape.dimensions_size() && in HostTensorToBorrowingLiteral()
39 tshape.dim_sizes() == xla_shape.dimensions()) in HostTensorToBorrowingLiteral()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dexport_utils.cc416 tensorflow::TensorShapeProto tshape; in SetShapeAttribute() local
419 for (auto dim : shaped_type.getShape()) tshape.add_dim()->set_size(dim); in SetShapeAttribute()
421 tshape.set_unknown_rank(true); in SetShapeAttribute()
423 *value.mutable_shape() = tshape; in SetShapeAttribute()
433 if (actual_shape.ShortDebugString() != tshape.ShortDebugString()) { in SetShapeAttribute()
434 return errors::InvalidArgument("Expected ", tshape.ShortDebugString(), in SetShapeAttribute()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dexport_tf_dialect_op.cc75 TensorShapeProto& tshape = *shape_list.add_shape(); in SetShapeAttribute() local
77 for (int64_t dim : *shape) tshape.add_dim()->set_size(dim); in SetShapeAttribute()
79 tshape.set_unknown_rank(true); in SetShapeAttribute()
/external/python/cpython2/Lib/lib-tk/
Dturtle.py2806 tshape = shape._data
2810 shape = tshape
2820 shape = [(lx*x, ly*y) for (x, y) in tshape]
2828 screen._drawimage(titem, self._position, tshape)
2832 for item, (poly, fc, oc) in zip(titem, tshape):
2870 tshape = shape._data
2875 shape = tshape
2885 shape = [(lx*x, ly*y) for (x, y) in tshape]
2894 screen._drawimage(stitem, self._position, tshape)
2897 for element in tshape:
[all …]
/external/python/cpython3/Lib/
Dturtle.py3004 tshape = shape._data
3009 shape = self._polytrafo(self._getshapepoly(tshape))
3014 screen._drawimage(titem, self._position, tshape)
3016 for item, (poly, fc, oc) in zip(titem, tshape):
3053 tshape = shape._data
3059 shape = self._polytrafo(self._getshapepoly(tshape))
3065 screen._drawimage(stitem, self._position, tshape)
3068 for element in tshape:
3072 for item, (poly, fc, oc) in zip(stitem, tshape):
/external/tensorflow/tensorflow/compiler/xla/service/
Dlayout_assignment_test.cc755 Shape tshape = ShapeUtil::MakeTupleShape({shape, shape}); in TEST_F() local
770 HloInstruction::CreateParameter(0, tshape, "param")); in TEST_F()
786 HloInstruction::CreateParameter(0, tshape, "param")); in TEST_F()
/external/python/cpython3/Lib/test/
Dtest_buffer.py2768 tshape = _tshape + [size]
2773 titems, tshape = cast_items(ex, tfmt, tsize, shape=tshape)
2776 self.assertRaises(TypeError, m.cast, tfmt, tshape)
2782 nd = ndarray(titems, shape=tshape, format=tfmt)
2784 m2 = m.cast(tfmt, shape=tshape)
2785 ndim = len(tshape)
2790 ndim=ndim, shape=tshape, strides=strides,