Home
last modified time | relevance | path

Searched refs:PrimitiveType (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/external/tensorflow/tensorflow/compiler/xla/
Dprimitive_util.h34 int SignificandWidth(PrimitiveType type);
38 int ExponentWidth(PrimitiveType type);
42 int OverflowExponent(PrimitiveType type);
47 PrimitiveType NativeToPrimitiveType() { in NativeToPrimitiveType()
61 inline PrimitiveType NativeToPrimitiveType<bool>() {
67 inline PrimitiveType NativeToPrimitiveType<uint8>() {
72 inline PrimitiveType NativeToPrimitiveType<uint16>() {
77 inline PrimitiveType NativeToPrimitiveType<uint32>() {
82 inline PrimitiveType NativeToPrimitiveType<uint64>() {
88 inline PrimitiveType NativeToPrimitiveType<int8>() {
[all …]
Dprimitive_util.cc30 int SignificandWidth(PrimitiveType type) { in SignificandWidth()
45 int ExponentWidth(PrimitiveType type) { in ExponentWidth()
58 int OverflowExponent(PrimitiveType type) { in OverflowExponent()
78 bool IsFloatingPointType(PrimitiveType type) { in IsFloatingPointType()
82 bool IsComplexType(PrimitiveType type) { return type == C64 || type == C128; } in IsComplexType()
84 bool IsSignedIntegralType(PrimitiveType type) { in IsSignedIntegralType()
88 bool IsUnsignedIntegralType(PrimitiveType type) { in IsUnsignedIntegralType()
92 bool IsIntegralType(PrimitiveType type) { in IsIntegralType()
96 int BitWidth(PrimitiveType type) { in BitWidth()
136 xla::PrimitiveType UnsignedIntegralTypeForBitWidth(int64 src_bitwidth) { in UnsignedIntegralTypeForBitWidth()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/typesystem/
DPrimitiveType.java26 public class PrimitiveType implements Type { class
32 …public static final PrimitiveType BYTE = new PrimitiveType("byte", Byte.class.getCanonicalName(), …
33 …public static final PrimitiveType SHORT = new PrimitiveType("short", Short.class.getCanonicalName(…
34 …public static final PrimitiveType CHAR = new PrimitiveType("char", Character.class.getCanonicalNam…
35 …public static final PrimitiveType INT = new PrimitiveType("int", Integer.class.getCanonicalName(),…
36 …public static final PrimitiveType LONG = new PrimitiveType("long", Long.class.getCanonicalName(), …
37 …public static final PrimitiveType BOOLEAN = new PrimitiveType("boolean", Boolean.class.getCanonica…
38 …public static final PrimitiveType FLOAT = new PrimitiveType("float", Float.class.getCanonicalName(…
39 …public static final PrimitiveType DOUBLE = new PrimitiveType("double", Double.class.getCanonicalNa…
40 …public static final List<PrimitiveType> ALL = ImmutableList.of(INT, BOOLEAN, LONG, CHAR, FLOAT, DO…
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/type/
DPrimitiveType.java36 public final class PrimitiveType extends Type<PrimitiveType> implements NodeWithAnnotations<Primiti… class
38 public static final PrimitiveType BYTE_TYPE = new PrimitiveType(Primitive.Byte);
40 public static final PrimitiveType SHORT_TYPE = new PrimitiveType(Primitive.Short);
42 public static final PrimitiveType INT_TYPE = new PrimitiveType(Primitive.Int);
44 public static final PrimitiveType LONG_TYPE = new PrimitiveType(Primitive.Long);
46 public static final PrimitiveType FLOAT_TYPE = new PrimitiveType(Primitive.Float);
48 public static final PrimitiveType DOUBLE_TYPE = new PrimitiveType(Primitive.Double);
50 public static final PrimitiveType BOOLEAN_TYPE = new PrimitiveType(Primitive.Boolean);
52 public static final PrimitiveType CHAR_TYPE = new PrimitiveType(Primitive.Char);
84 public PrimitiveType() { in PrimitiveType() method in PrimitiveType
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/type/
DPrimitiveType.java51 public class PrimitiveType extends Type implements NodeWithAnnotations<PrimitiveType> { class
53 public static PrimitiveType booleanType() { in booleanType()
54 return new PrimitiveType(Primitive.BOOLEAN); in booleanType()
57 public static PrimitiveType charType() { in charType()
58 return new PrimitiveType(Primitive.CHAR); in charType()
61 public static PrimitiveType byteType() { in byteType()
62 return new PrimitiveType(Primitive.BYTE); in byteType()
65 public static PrimitiveType shortType() { in shortType()
66 return new PrimitiveType(Primitive.SHORT); in shortType()
69 public static PrimitiveType intType() { in intType()
[all …]
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/
Dtpu_driver.cc36 int64_t ByteSizeOfPrimitiveType(xla::PrimitiveType primitive_type) { in ByteSizeOfPrimitiveType()
38 case xla::PrimitiveType::PRED: in ByteSizeOfPrimitiveType()
40 case xla::PrimitiveType::S8: in ByteSizeOfPrimitiveType()
42 case xla::PrimitiveType::S16: in ByteSizeOfPrimitiveType()
44 case xla::PrimitiveType::S32: in ByteSizeOfPrimitiveType()
46 case xla::PrimitiveType::S64: in ByteSizeOfPrimitiveType()
48 case xla::PrimitiveType::U8: in ByteSizeOfPrimitiveType()
50 case xla::PrimitiveType::U16: in ByteSizeOfPrimitiveType()
52 case xla::PrimitiveType::U32: in ByteSizeOfPrimitiveType()
54 case xla::PrimitiveType::U64: in ByteSizeOfPrimitiveType()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dtype_to_shape.cc40 using xla::PrimitiveType;
45 PrimitiveType TypeToPrimitiveType(mlir::Type type) { in TypeToPrimitiveType()
47 return PrimitiveType::BF16; in TypeToPrimitiveType()
49 return PrimitiveType::F16; in TypeToPrimitiveType()
51 return PrimitiveType::F32; in TypeToPrimitiveType()
53 return PrimitiveType::F64; in TypeToPrimitiveType()
57 return PrimitiveType::C64; in TypeToPrimitiveType()
60 return PrimitiveType::C128; in TypeToPrimitiveType()
62 return PrimitiveType::PRIMITIVE_TYPE_INVALID; in TypeToPrimitiveType()
67 return PrimitiveType::PRED; in TypeToPrimitiveType()
[all …]
Dtype_to_shape_test.cc69 EXPECT_EQ(TypeToPrimitiveType(b.getF32Type()), PrimitiveType::F32); in TEST()
70 EXPECT_EQ(TypeToPrimitiveType(b.getIntegerType(1)), PrimitiveType::PRED); in TEST()
72 PrimitiveType::PRIMITIVE_TYPE_INVALID); in TEST()
84 ShapeUtil::MakeShape(PrimitiveType::S32, {8, 128}).ToProto())); in TEST()
88 ShapeUtil::MakeShape(PrimitiveType::F32, {8, 128}).ToProto())); in TEST()
104 ShapeUtil::MakeShape(PrimitiveType::F32, {8, 128}).ToProto())); in TEST()
108 ShapeUtil::MakeShape(PrimitiveType::F32, {100, 13, 210}).ToProto())); in TEST()
116 ShapeUtil::MakeShape(PrimitiveType::F32, {100, 13, 210, 8, 128}) in TEST()
127 ShapeUtil::MakeShape(PrimitiveType::F32, {8, 128}).ToProto())); in TEST()
183 Shape shape = ShapeUtil::MakeShapeWithLayout(PrimitiveType::F32, {10, 20, 30}, in TEST()
[all …]
Dhlo_utils.cc107 case PrimitiveType::PRED: in CreateDenseElementsAttrFromLiteral()
109 case PrimitiveType::F16: in CreateDenseElementsAttrFromLiteral()
111 case PrimitiveType::BF16: in CreateDenseElementsAttrFromLiteral()
113 case PrimitiveType::F32: in CreateDenseElementsAttrFromLiteral()
115 case PrimitiveType::F64: in CreateDenseElementsAttrFromLiteral()
117 case PrimitiveType::S8: in CreateDenseElementsAttrFromLiteral()
119 case PrimitiveType::S16: in CreateDenseElementsAttrFromLiteral()
121 case PrimitiveType::S32: in CreateDenseElementsAttrFromLiteral()
123 case PrimitiveType::S64: in CreateDenseElementsAttrFromLiteral()
125 case PrimitiveType::U8: in CreateDenseElementsAttrFromLiteral()
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Darithmetic.h30 XlaComputation CreateScalarComputation(const string& name, PrimitiveType type,
35 XlaComputation CreateScalarAddComputation(PrimitiveType type,
39 XlaComputation CreateScalarMultiplyComputation(PrimitiveType type,
43 XlaComputation CreateScalarGeComputation(PrimitiveType type,
47 XlaComputation CreateScalarMaxComputation(PrimitiveType type,
51 XlaComputation CreateScalarMinComputation(PrimitiveType type,
55 XlaComputation CreateScalarAndComputation(PrimitiveType type,
59 XlaComputation CreateScalarOrComputation(PrimitiveType type,
71 XlaComputation CreateScalarIdentityWithZeroComputation(PrimitiveType type,
84 XlaOp ArgMax(XlaOp input, PrimitiveType output_type, int axis,
[all …]
Darithmetic.cc31 XlaComputation CreateScalarComputation(const string& name, PrimitiveType type, in CreateScalarComputation()
49 XlaComputation CreateScalarAddComputation(PrimitiveType type, in CreateScalarAddComputation()
55 XlaComputation CreateScalarMultiplyComputation(PrimitiveType type, in CreateScalarMultiplyComputation()
61 XlaComputation CreateScalarGeComputation(PrimitiveType type, in CreateScalarGeComputation()
67 XlaComputation CreateScalarMaxComputation(PrimitiveType type, in CreateScalarMaxComputation()
73 XlaComputation CreateScalarMinComputation(PrimitiveType type, in CreateScalarMinComputation()
79 XlaComputation CreateScalarAndComputation(PrimitiveType type, in CreateScalarAndComputation()
85 XlaComputation CreateScalarOrComputation(PrimitiveType type, in CreateScalarOrComputation()
91 XlaComputation CreateScalarIdentityWithZeroComputation(PrimitiveType type, in CreateScalarIdentityWithZeroComputation()
116 PrimitiveType value_type, in CreateMinMaxComputation()
[all …]
Dconstants.h34 XlaOp ConstantR0WithType(XlaBuilder* builder, PrimitiveType type, T value) { in ConstantR0WithType()
121 XlaOp Zero(XlaBuilder* builder, PrimitiveType type);
130 XlaOp One(XlaBuilder* builder, PrimitiveType type);
134 XlaOp Epsilon(XlaBuilder* builder, PrimitiveType type);
138 XlaOp MinValue(XlaBuilder* builder, PrimitiveType type);
142 XlaOp MinFiniteValue(XlaBuilder* builder, PrimitiveType type);
145 XlaOp MinPositiveNormalValue(XlaBuilder* builder, PrimitiveType type);
149 XlaOp MaxValue(XlaBuilder* builder, PrimitiveType type);
152 XlaOp MaxFiniteValue(XlaBuilder* builder, PrimitiveType type);
155 XlaOp NanValue(XlaBuilder* builder, PrimitiveType type);
Dconstants.cc23 XlaOp Zero(XlaBuilder* builder, PrimitiveType type) { in Zero()
40 XlaOp One(XlaBuilder* builder, PrimitiveType type) { in One()
44 XlaOp Epsilon(XlaBuilder* builder, PrimitiveType type) { in Epsilon()
65 XlaOp MinValue(XlaBuilder* builder, PrimitiveType type) { in MinValue()
69 XlaOp MinFiniteValue(XlaBuilder* builder, PrimitiveType type) { in MinFiniteValue()
86 XlaOp MinPositiveNormalValue(XlaBuilder* builder, PrimitiveType type) { in MinPositiveNormalValue()
105 XlaOp MaxValue(XlaBuilder* builder, PrimitiveType type) { in MaxValue()
109 XlaOp MaxFiniteValue(XlaBuilder* builder, PrimitiveType type) { in MaxFiniteValue()
126 XlaOp NanValue(XlaBuilder* builder, PrimitiveType type) { in NanValue()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Delemental_ir_emitter.h55 StatusOr<llvm::Value*> EmitLog(PrimitiveType prim_type,
58 StatusOr<llvm::Value*> EmitLog1p(PrimitiveType prim_type,
61 StatusOr<llvm::Value*> EmitSin(PrimitiveType prim_type,
64 StatusOr<llvm::Value*> EmitCos(PrimitiveType prim_type,
67 StatusOr<llvm::Value*> EmitExp(PrimitiveType prim_type, llvm::Value* value,
70 StatusOr<llvm::Value*> EmitExpm1(PrimitiveType prim_type,
73 StatusOr<llvm::Value*> EmitSqrt(PrimitiveType prim_type,
76 StatusOr<llvm::Value*> EmitRsqrt(PrimitiveType prim_type,
79 StatusOr<llvm::Value*> EmitPow(PrimitiveType prim_type, llvm::Value* lhs,
83 StatusOr<llvm::Value*> EmitAtan2(PrimitiveType prim_type, llvm::Value* lhs,
[all …]
Delemental_ir_emitter.cc81 absl::Span<const PrimitiveType> input_types, PrimitiveType output_type, in EmitDeviceMathCall()
88 std::vector<PrimitiveType> converted_input_types(input_types.begin(), in EmitDeviceMathCall()
123 absl::Span<const PrimitiveType> input_types, PrimitiveType output_type) { in EmitLlvmIntrinsicMathCall()
146 absl::Span<const PrimitiveType> input_types, PrimitiveType output_type, in EmitMathCall()
149 for (PrimitiveType input_type : input_types) { in EmitMathCall()
164 PrimitiveType lhs_input_type = op->operand(0)->shape().element_type(); in EmitFloatBinaryOp()
165 PrimitiveType rhs_input_type = op->operand(1)->shape().element_type(); in EmitFloatBinaryOp()
166 PrimitiveType output_type = op->shape().element_type(); in EmitFloatBinaryOp()
194 PrimitiveType lhs_input_type = op->operand(0)->shape().element_type(); in EmitPowerOp()
195 PrimitiveType rhs_input_type = op->operand(1)->shape().element_type(); in EmitPowerOp()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/
DASTHelper.java42 import com.github.javaparser.ast.type.PrimitiveType;
46 import com.github.javaparser.ast.type.PrimitiveType.Primitive;
58 public static final PrimitiveType BYTE_TYPE = new PrimitiveType(Primitive.Byte);
60 public static final PrimitiveType SHORT_TYPE = new PrimitiveType(Primitive.Short);
62 public static final PrimitiveType INT_TYPE = new PrimitiveType(Primitive.Int);
64 public static final PrimitiveType LONG_TYPE = new PrimitiveType(Primitive.Long);
66 public static final PrimitiveType FLOAT_TYPE = new PrimitiveType(Primitive.Float);
68 public static final PrimitiveType DOUBLE_TYPE = new PrimitiveType(Primitive.Double);
70 public static final PrimitiveType BOOLEAN_TYPE = new PrimitiveType(Primitive.Boolean);
72 public static final PrimitiveType CHAR_TYPE = new PrimitiveType(Primitive.Char);
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/expected_output/
Dcom_github_javaparser_ast_type_PrimitiveType.txt2 [ Class com.github.javaparser.ast.type.PrimitiveType ]
9 …>() ==> java.util.HashMap<java.lang.String, com.github.javaparser.ast.type.PrimitiveType.Primitive>
10 Line 57) Primitive unboxedType ==> com.github.javaparser.ast.type.PrimitiveType.Primitive
11 Line 57) Primitive.values() ==> com.github.javaparser.ast.type.PrimitiveType.Primitive[]
12 …nboxedType.nameOfBoxedType, unboxedType) ==> com.github.javaparser.ast.type.PrimitiveType.Primitive
13 Line 68) this.type = type ==> com.github.javaparser.ast.type.PrimitiveType.Primitive
18 Line 74) this.type = type ==> com.github.javaparser.ast.type.PrimitiveType.Primitive
21 Line 86) type ==> com.github.javaparser.ast.type.PrimitiveType.Primitive
23 Line 94) this.type = type ==> com.github.javaparser.ast.type.PrimitiveType.Primitive
Dcom_github_javaparser_ASTHelper.txt4 Line 58) new PrimitiveType(Primitive.Byte) ==> com.github.javaparser.ast.type.PrimitiveType
5 Line 60) new PrimitiveType(Primitive.Short) ==> com.github.javaparser.ast.type.PrimitiveType
6 Line 62) new PrimitiveType(Primitive.Int) ==> com.github.javaparser.ast.type.PrimitiveType
7 Line 64) new PrimitiveType(Primitive.Long) ==> com.github.javaparser.ast.type.PrimitiveType
8 Line 66) new PrimitiveType(Primitive.Float) ==> com.github.javaparser.ast.type.PrimitiveType
9 Line 68) new PrimitiveType(Primitive.Double) ==> com.github.javaparser.ast.type.PrimitiveType
10 Line 70) new PrimitiveType(Primitive.Boolean) ==> com.github.javaparser.ast.type.PrimitiveType
11 Line 72) new PrimitiveType(Primitive.Char) ==> com.github.javaparser.ast.type.PrimitiveType
/external/python/cffi/testing/cffi0/
Dtest_model.py10 int_type = PrimitiveType("int")
17 int_type = PrimitiveType("int")
36 int_type = PrimitiveType("int")
50 ptr_type = PointerType(PrimitiveType("int"))
54 ptr_type = ConstPointerType(PrimitiveType("int"))
56 ptr_type = ConstPointerType(ArrayType(PrimitiveType("int"), 5))
61 ptr_type = PointerType(PrimitiveType("long long"), Q_RESTRICT)
76 a_type = ArrayType(PrimitiveType("int"), None)
90 a_type = ArrayType(ConstPointerType(PrimitiveType("int")), None)
94 fn_type = FunctionPtrType([], PrimitiveType("int"), False)
/external/tensorflow/tensorflow/compiler/xla/service/
Delemental_ir_emitter.h121 virtual StatusOr<llvm::Value*> EmitAtan2(PrimitiveType prim_type,
125 virtual StatusOr<llvm::Value*> EmitLog(PrimitiveType prim_type,
128 virtual StatusOr<llvm::Value*> EmitSqrt(PrimitiveType prim_type,
131 virtual StatusOr<llvm::Value*> EmitCbrt(PrimitiveType prim_type,
134 virtual StatusOr<llvm::Value*> EmitRsqrt(PrimitiveType prim_type,
137 virtual StatusOr<llvm::Value*> EmitLog1p(PrimitiveType prim_type,
140 virtual StatusOr<llvm::Value*> EmitSin(PrimitiveType prim_type,
143 virtual StatusOr<llvm::Value*> EmitCos(PrimitiveType prim_type,
146 virtual StatusOr<llvm::Value*> EmitExp(PrimitiveType prim_type,
150 virtual StatusOr<llvm::Value*> EmitExpm1(PrimitiveType prim_type,
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCCoverageProcessor.h38 enum class PrimitiveType { enum
45 static const char* PrimitiveTypeName(PrimitiveType);
71 GrCCCoverageProcessor(GrResourceProvider* rp, PrimitiveType type) in GrCCCoverageProcessor()
217 int numInputPoints() const { return PrimitiveType::kCubics == fPrimitiveType ? 4 : 3; } in numInputPoints()
220 return PrimitiveType::kTriangles == fPrimitiveType || in isTriangles()
221 PrimitiveType::kWeightedTriangles == fPrimitiveType; in isTriangles()
225 return PrimitiveType::kWeightedTriangles == fPrimitiveType || in hasInputWeight()
226 PrimitiveType::kConics == fPrimitiveType; in hasInputWeight()
263 const PrimitiveType fPrimitiveType;
280 inline const char* GrCCCoverageProcessor::PrimitiveTypeName(PrimitiveType type) { in PrimitiveTypeName()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_type_PrimitiveType.txt1 Line 77) Primitive.values() ==> com.github.javaparser.ast.type.PrimitiveType.Primitive.values()
3 …e(type) ==> com.github.javaparser.ast.type.PrimitiveType.setType(com.github.javaparser.ast.type.Pr…
4 …github.javaparser.ast.visitor.GenericVisitor.visit(com.github.javaparser.ast.type.PrimitiveType, A)
5 …om.github.javaparser.ast.visitor.VoidVisitor.visit(com.github.javaparser.ast.type.PrimitiveType, A)
6 …Line 109) type.toBoxedType() ==> com.github.javaparser.ast.type.PrimitiveType.Primitive.toBoxedTyp…
/external/python/cffi/cffi/
Dcommontypes.py18 for _type in model.PrimitiveType.ALL_PRIMITIVE_TYPES:
32 elif cdecl in model.PrimitiveType.ALL_PRIMITIVE_TYPES:
33 result, quals = model.PrimitiveType(cdecl), 0
62 [model.PrimitiveType("unsigned short"),
63 model.PrimitiveType("unsigned short"),
64 model.PointerType(model.PrimitiveType("wchar_t"))],
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py184 PrimitiveType = _xla.PrimitiveType variable
189 PrimitiveType.PRED: np.dtype('bool'),
190 PrimitiveType.S8: np.dtype('int8'),
191 PrimitiveType.S16: np.dtype('int16'),
192 PrimitiveType.S32: np.dtype('int32'),
193 PrimitiveType.S64: np.dtype('int64'),
194 PrimitiveType.U8: np.dtype('uint8'),
195 PrimitiveType.U16: np.dtype('uint16'),
196 PrimitiveType.U32: np.dtype('uint32'),
197 PrimitiveType.U64: np.dtype('uint64'),
[all …]
/external/skqp/samplecode/
DSampleCCPRGeometry.cpp32 using PrimitiveType = GrCCCoverageProcessor::PrimitiveType; typedef
60 PrimitiveType fPrimitiveType = PrimitiveType::kTriangles;
211 if (PrimitiveType::kCubics == fPrimitiveType) { in onDrawContent()
213 } else if (PrimitiveType::kConics == fPrimitiveType) { in onDrawContent()
228 if (PrimitiveType::kCubics == fPrimitiveType) { in onDrawContent()
255 if (PrimitiveType::kCubics == fPrimitiveType) { in updateGpuData()
280 } else if (PrimitiveType::kTriangles != fPrimitiveType) { in updateGpuData()
284 if (PrimitiveType::kQuadratics == fPrimitiveType) { in updateGpuData()
288 SkASSERT(PrimitiveType::kConics == fPrimitiveType); in updateGpuData()
305 if (PrimitiveType::kQuadratics == fPrimitiveType && in updateGpuData()
[all …]

12345678910>>...17