Home
last modified time | relevance | path

Searched refs:DataType (Results 1 – 25 of 1157) sorted by relevance

12345678910>>...47

/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Ddata_type.cc24 size_t SizeOf(DataType data_type) { in SizeOf()
26 case DataType::UINT8: in SizeOf()
27 case DataType::INT8: in SizeOf()
29 case DataType::FLOAT16: in SizeOf()
30 case DataType::INT16: in SizeOf()
31 case DataType::UINT16: in SizeOf()
33 case DataType::FLOAT32: in SizeOf()
34 case DataType::INT32: in SizeOf()
35 case DataType::UINT32: in SizeOf()
37 case DataType::FLOAT64: in SizeOf()
[all …]
Dtensor.h30 template <DataType Type>
34 struct StorageType<DataType::FLOAT32> {
39 struct StorageType<DataType::INT32> {
45 template <typename ShapeT, DataType Type>
49 constexpr static DataType kType = Type;
67 DataType type = DataType::UNKNOWN;
76 template <typename ShapeT, DataType Type>
77 constexpr DataType Tensor<ShapeT, Type>::kType;
79 template <typename ShapeT, DataType Type>
88 using TensorFloat32 = Tensor<BHWC, DataType::FLOAT32>;
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dcast_op_impl.h70 CastFunctorType GetCpuCastFromBool(DataType dst_dtype);
72 CastFunctorType GetCpuCastFromUint8(DataType dst_dtype);
74 CastFunctorType GetCpuCastFromUint16(DataType dst_dtype);
76 CastFunctorType GetCpuCastFromInt8(DataType dst_dtype);
78 CastFunctorType GetCpuCastFromUint32(DataType dst_dtype);
80 CastFunctorType GetCpuCastFromUint64(DataType dst_dtype);
82 CastFunctorType GetCpuCastFromInt8(DataType dst_dtype);
84 CastFunctorType GetCpuCastFromInt16(DataType dst_dtype);
86 CastFunctorType GetCpuCastFromInt32(DataType dst_dtype);
88 CastFunctorType GetCpuCastFromInt64(DataType dst_dtype);
[all …]
Dtensor_flag_utils_test.cc26 using tensorflow::DataType;
41 Tensor t(DataType::DT_FLOAT, {}); in TEST()
46 Tensor t(DataType::DT_FLOAT, {}); in TEST()
53 Tensor t(DataType::DT_FLOAT, {1, 1}); in TEST()
61 Tensor t(DataType::DT_FLOAT, {1, 2}); in TEST()
74 Tensor t(DataType::DT_FLOAT, {1, 3}); in TEST()
84 Tensor t(DataType::DT_FLOAT, {2, 3}); in TEST()
94 Tensor t(DataType::DT_FLOAT, {2, 3}); in TEST()
102 Tensor t(DataType::DT_FLOAT, {2, 3}); in TEST()
110 Tensor t(DataType::DT_FLOAT, {2, 3}); in TEST()
[all …]
/external/tensorflow/tensorflow/python/framework/
Ddtypes.cc23 inline int DataTypeId(tensorflow::DataType dt) { return static_cast<int>(dt); } in DataTypeId()
28 const std::string DataTypeStringCompat(tensorflow::DataType dt) { in DataTypeStringCompat()
30 case tensorflow::DataType::DT_HALF: in DataTypeStringCompat()
32 case tensorflow::DataType::DT_HALF_REF: in DataTypeStringCompat()
34 case tensorflow::DataType::DT_FLOAT: in DataTypeStringCompat()
36 case tensorflow::DataType::DT_FLOAT_REF: in DataTypeStringCompat()
38 case tensorflow::DataType::DT_DOUBLE: in DataTypeStringCompat()
40 case tensorflow::DataType::DT_DOUBLE_REF: in DataTypeStringCompat()
52 ToSet(DataType::DT_RESOURCE) | ToSet(DataType::DT_VARIANT);
54 inline bool DataTypeIsNumPyCompatible(DataType dt) { in DataTypeIsNumPyCompatible()
[all …]
/external/deqp/framework/opengl/
DgluShaderUtil.hpp107 enum DataType enum
258 const char* getDataTypeName (DataType dataType);
259 int getDataTypeScalarSize (DataType dataType);
260 DataType getDataTypeScalarType (DataType dataType);
261 DataType getDataTypeFloat16Scalars (DataType dataType);
262 DataType getDataTypeFloatScalars (DataType dataType);
263 DataType getDataTypeDoubleScalars (DataType dataType);
264 DataType getDataTypeVector (DataType scalarType, int size);
265 DataType getDataTypeFloatVec (int vecSize);
266 DataType getDataTypeIntVec (int vecSize);
[all …]
/external/vixl/src/aarch32/
Ddisasm-aarch32.h151 DataType dt_;
152 DataType default_dt_;
155 DtPrinter(DataType dt, DataType default_dt) in DtPrinter()
157 DataType GetDt() const { return dt_; } in GetDt()
158 DataType GetDefaultDt() const { return default_dt_; } in GetDefaultDt()
311 virtual DisassemblerStream& operator<<(const DataType& type) {
1449 Condition cond, DataType dt, DRegister rd, DRegister rn, DRegister rm);
1452 Condition cond, DataType dt, QRegister rd, QRegister rn, QRegister rm);
1455 Condition cond, DataType dt, QRegister rd, DRegister rn, DRegister rm);
1458 Condition cond, DataType dt, DRegister rd, DRegister rn, DRegister rm);
[all …]
Dassembler-aarch32.h262 typedef void (Assembler::*InstructionDtQQ)(DataType dt,
347 typedef void (Assembler::*InstructionDtQQQ)(DataType dt,
368 Condition cond, DataType dt, DRegister rd, DRegister rn, DRegister rm);
370 Condition cond, DataType dt, QRegister rd, QRegister rn, QRegister rm);
372 Condition cond, DataType dt, QRegister rd, DRegister rn, DRegister rm);
374 DataType dt,
378 DataType dt,
382 DataType dt,
386 Condition cond, DataType dt, SRegister rd, SRegister rn, SRegister rm);
388 Condition cond, DataType dt, DRegister rd, QRegister rn, QRegister rm);
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/compiler/
Dobject_accessor.cc47 void MaybeConvertToHalf(DataType data_type, absl::string_view value, in MaybeConvertToHalf()
49 if (data_type == DataType::FLOAT16) { in MaybeConvertToHalf()
56 void MaybeConvertFromHalf(DataType data_type, absl::string_view value, in MaybeConvertFromHalf()
58 if (data_type == DataType::FLOAT16) { in MaybeConvertFromHalf()
155 DataType data_type;
229 DataType data_type;
297 std::string ToBufferType(DataType data_type) { in ToBufferType()
299 case DataType::UINT8: in ToBufferType()
300 case DataType::UINT16: in ToBufferType()
301 case DataType::UINT32: in ToBufferType()
[all …]
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/
DDataType.java24 public enum DataType { enum
58 DataType(int value, int byteSize) { in DataType() method in DataType
76 private static final DataType[] values = values();
78 static DataType fromC(int c) { in fromC()
79 for (DataType t : values) { in fromC()
96 public static DataType fromClass(Class<?> c) { in fromClass()
97 DataType dtype = typeCodes.get(c); in fromClass()
105 private static final Map<Class<?>, DataType> typeCodes = new HashMap<>();
108 typeCodes.put(Float.class, DataType.FLOAT); in typeCodes.put()
109 typeCodes.put(Double.class, DataType.DOUBLE); in typeCodes.put()
[all …]
DTensor.java106 DataType dtype = DataType.fromClass(type); in create()
138 private static Tensor<?> create(Object obj, DataType dtype) { in create()
144 if (t.dtype != DataType.STRING) { in create()
170 Tensor<Integer> t = allocateForBuffer(DataType.INT32, shape, data.remaining()); in create()
188 Tensor<Float> t = allocateForBuffer(DataType.FLOAT, shape, data.remaining()); in create()
206 Tensor<Double> t = allocateForBuffer(DataType.DOUBLE, shape, data.remaining()); in create()
224 Tensor<Long> t = allocateForBuffer(DataType.INT64, shape, data.remaining()); in create()
246 Tensor<T> ret = (Tensor<T>) create(DataType.fromClass(type), shape, data); in create()
250 private static Tensor<?> create(DataType dtype, long[] shape, ByteBuffer data) { in create()
252 if (dtype != DataType.STRING) { in create()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dgl_texture.cc28 GLenum ToTextureFormat(DataType type) { in ToTextureFormat()
30 case DataType::INT8: in ToTextureFormat()
31 case DataType::UINT16: in ToTextureFormat()
32 case DataType::UINT32: in ToTextureFormat()
33 case DataType::INT16: in ToTextureFormat()
34 case DataType::INT32: in ToTextureFormat()
36 case DataType::FLOAT16: in ToTextureFormat()
37 case DataType::FLOAT32: in ToTextureFormat()
38 case DataType::UINT8: // this requires GL_RGBA8 internal format in ToTextureFormat()
45 GLenum ToTextureInternalFormat(DataType type) { in ToTextureInternalFormat()
[all …]
/external/antlr/runtime/Cpp/include/
Dantlr3input.hpp58 typedef UnitType DataType; typedef in InputStream
67 const DataType* m_data;
74 const DataType* m_nextChar;
91 const DataType* m_currentLine;
141 const DataType* get_data() const;
143 const DataType* get_nextChar() const;
146 const DataType* get_currentLine() const;
156 void set_data( DataType* data );
158 void set_nextChar( const DataType* nextChar );
161 void set_currentLine( const DataType* currentLine );
[all …]
Dantlr3collections.hpp40 template< class ImplTraits, class DataType >
47 DataType m_data;
51 TrieEntry(const DataType& data, TrieEntry* next);
52 DataType& get_data();
53 const DataType& get_data() const;
60 template< class ImplTraits, class DataType >
64 typedef TrieEntry<ImplTraits, DataType> TrieEntryType;
113 template< class ImplTraits, class DataType >
117 typedef TrieEntry<ImplTraits, DataType> TrieEntryType;
118 typedef IntTrieNode<ImplTraits, DataType> IntTrieNodeType;
[all …]
/external/llvm/include/llvm/Support/
DCommandLine.h432 template <class DataType> struct OptionValue;
436 template <class DataType, bool isClass>
439 typedef OptionValue<DataType> WrapperType;
443 const DataType &getValue() const { llvm_unreachable("no default value"); } in getValue()
448 bool compare(const DataType & /*V*/) const { return false; } in compare()
459 template <class DataType> class OptionValueCopy : public GenericOptionValue {
460 DataType Value;
473 const DataType &getValue() const { in getValue()
478 void setValue(const DataType &V) { in setValue()
483 bool compare(const DataType &V) const { return Valid && (Value != V); } in compare()
[all …]
/external/deqp/external/openglcts/modules/common/
DglcLimitTest.hpp41 template <typename DataType>
45 LimitCase(deqp::Context& context, const char* caseName, deUint32 limitToken, DataType limitBoundry,
53 bool isWithinBoundry(DataType value, bool isBuiltin = false) const;
57 DataType getLimitValue(const glw::Functions& gl) const;
59 bool isEqual(DataType a, DataType b) const;
60 bool isGreater(DataType a, DataType b) const;
61 bool isSmaller(DataType a, DataType b) const;
68 DataType m_limitBoundry; // min/max value
DglcLimitTest.inl26 template<typename DataType>
27 LimitCase<DataType>::LimitCase(deqp::Context& context,
30 DataType limitBoundry,
45 template<typename DataType>
46 LimitCase<DataType>::~LimitCase(void)
50 template<typename DataType>
51 tcu::TestNode::IterateResult LimitCase<DataType>::iterate(void)
53 DataType limitValue = DataType();
112 gl.bufferData(GL_SHADER_STORAGE_BUFFER, sizeof(DataType), NULL, GL_DYNAMIC_DRAW);
119DataType* data = static_cast<DataType*>(gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, sizeof(Data…
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dtensor_test.cc92 Status TensorTests(DataType data_type, TensorStorageType storage_type, in TensorTests()
132 ASSERT_OK(TensorTests(DataType::FLOAT32, TensorStorageType::BUFFER, &env_)); in TEST_F()
136 ASSERT_OK(TensorTests(DataType::FLOAT16, TensorStorageType::BUFFER, &env_)); in TEST_F()
141 TensorTests(DataType::FLOAT32, TensorStorageType::TEXTURE_2D, &env_)); in TEST_F()
146 TensorTests(DataType::FLOAT16, TensorStorageType::TEXTURE_2D, &env_)); in TEST_F()
151 TensorTests(DataType::FLOAT32, TensorStorageType::TEXTURE_3D, &env_)); in TEST_F()
156 TensorTests(DataType::FLOAT16, TensorStorageType::TEXTURE_3D, &env_)); in TEST_F()
161 TensorTests(DataType::FLOAT32, TensorStorageType::TEXTURE_ARRAY, &env_)); in TEST_F()
166 TensorTests(DataType::FLOAT16, TensorStorageType::TEXTURE_ARRAY, &env_)); in TEST_F()
171 TensorTests(DataType::FLOAT32, TensorStorageType::IMAGE_BUFFER, &env_)); in TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/tf2tensorrt/plugin/
Dplugin_cast.cu.cc29 using nvinfer1::DataType;
61 CastPlugin(DataType src_type, DataType dst_type) in CastPlugin()
67 src_type_ = ReadFromBuffer<DataType>(&buffer); in CastPlugin()
68 dst_type_ = ReadFromBuffer<DataType>(&buffer); in CastPlugin()
80 DataType getOutputDataType(int index, const DataType* input_types, in getOutputDataType()
99 const DataType* input_types, in configurePlugin()
100 const DataType* output_types, in configurePlugin()
128 bool supportsFormat(DataType type, PluginFormat format) const override { in supportsFormat()
129 return type == DataType::kFLOAT || type == DataType::kINT32; in supportsFormat()
145 case DataType::kFLOAT: in enqueue()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DCommandLine.h466 template <class DataType> struct OptionValue;
470 template <class DataType, bool isClass>
473 using WrapperType = OptionValue<DataType>;
477 const DataType &getValue() const { llvm_unreachable("no default value"); } in getValue()
482 bool compare(const DataType & /*V*/) const { return false; } in compare()
493 template <class DataType> class OptionValueCopy : public GenericOptionValue {
494 DataType Value;
507 const DataType &getValue() const { in getValue()
512 void setValue(const DataType &V) { in setValue()
517 bool compare(const DataType &V) const { return Valid && (Value != V); } in compare()
[all …]
/external/pdfium/fxjs/
Dcjs_global.cpp252 case CFX_Value::DataType::NUMBER: in GetProperty()
254 case CFX_Value::DataType::BOOLEAN: in GetProperty()
256 case CFX_Value::DataType::STRING: in GetProperty()
259 case CFX_Value::DataType::OBJECT: in GetProperty()
262 case CFX_Value::DataType::NULLOBJ: in GetProperty()
275 return SetGlobalVariables(sPropName, CFX_Value::DataType::NUMBER, in SetProperty()
280 return SetGlobalVariables(sPropName, CFX_Value::DataType::BOOLEAN, 0, in SetProperty()
285 return SetGlobalVariables(sPropName, CFX_Value::DataType::STRING, 0, false, in SetProperty()
290 return SetGlobalVariables(sPropName, CFX_Value::DataType::OBJECT, 0, false, in SetProperty()
294 return SetGlobalVariables(sPropName, CFX_Value::DataType::NULLOBJ, 0, false, in SetProperty()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DCommandLine.h451 template <class DataType> struct OptionValue;
455 template <class DataType, bool isClass>
458 typedef OptionValue<DataType> WrapperType;
462 const DataType &getValue() const { llvm_unreachable("no default value"); } in getValue()
467 bool compare(const DataType & /*V*/) const { return false; } in compare()
478 template <class DataType> class OptionValueCopy : public GenericOptionValue {
479 DataType Value;
492 const DataType &getValue() const { in getValue()
497 void setValue(const DataType &V) { in setValue()
502 bool compare(const DataType &V) const { return Valid && (Value != V); } in compare()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/
DGenericRequestBuilder.java49 public class GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> implements Clo…
56 private ChildLoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider;
80 … GenericRequestBuilder(LoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider, in GenericRequestBuilder() argument
92 LoadProvider<ModelType, DataType, ResourceType, TranscodeType> loadProvider, in GenericRequestBuilder() argument
101 … ? new ChildLoadProvider<ModelType, DataType, ResourceType, TranscodeType>(loadProvider) : null; in GenericRequestBuilder()
126 public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> thumbnail( in thumbnail()
158 public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> thumbnail( in thumbnail()
176 public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> sizeMultiplier( in sizeMultiplier()
196 public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> decoder( in decoder()
197 ResourceDecoder<DataType, ResourceType> decoder) { in decoder() argument
[all …]
/external/tensorflow/tensorflow/core/framework/
Dtypes.h105 typedef gtl::InlinedVector<DataType, 4> DataTypeVector;
106 typedef gtl::ArraySlice<DataType> DataTypeSlice;
113 string DataTypeString(DataType dtype);
133 constexpr bool Contains(DataType dt) const {
146 DataType operator*() const { return static_cast<DataType>(pos_); }
235 bool DataTypeFromString(StringPiece sp, DataType* dt);
237 constexpr inline DataTypeSet ToSet(DataType dt) {
243 inline bool IsRefType(DataType dtype) {
244 return dtype > static_cast<DataType>(kDataTypeRefOffset);
246 inline DataType MakeRefType(DataType dtype) {
[all …]
/external/tensorflow/tensorflow/core/util/
Dexample_proto_helper.h42 DataType dtype;
51 DataType dtype;
122 Status CheckValidType(const DataType& dtype);
126 Status CheckTypesMatch(const Feature& feature, const DataType& dtype,
132 const string& key, const DataType& dtype,
138 void RowDenseCopy(const std::size_t& out_index, const DataType& dtype,
144 const DataType& dtype, const Feature& feature);
192 std::vector<DataType> sparse_types;
193 std::vector<DataType> dense_types;
194 std::vector<DataType> ragged_value_types;
[all …]

12345678910>>...47