Home
last modified time | relevance | path

Searched refs:IsScalar (Results 1 – 25 of 31) sorted by relevance

12

/third_party/flatbuffers/src/
Didl_gen_java.cpp128 !IsScalar(DestinationType(t, true).base_type) && in GenNullableAnnotation()
136 !IsScalar(DestinationType(t, true).base_type) in GenPureAnnotation()
164 return IsScalar(type.base_type) in GenTypeGet()
249 return IsScalar(type.base_type) ? SourceCast(type, castFromDest) : ""; in SourceCastBasic()
292 if (!IsScalar(value.type.base_type)) { return "0"; } in GenDefaultValueBasic()
398 if (IsScalar(type.base_type)) { in GenSetter()
411 return IsScalar(type.base_type) ? MakeCamel(GenTypeBasic(type)) in GenMethod()
685 if (IsScalar(field.value.type.base_type)) { in GenStruct()
760 : (IsScalar(field.value.type.element) ? default_cast + "0" in GenStruct()
819 if (IsScalar(element_base_type)) { in GenStruct()
[all …]
Didl_gen_lobster.cpp72 if (IsScalar(type.base_type) && type.enum_def) in LobsterType()
74 if (!IsScalar(type.base_type)) return "flatbuffers_offset"; in LobsterType()
80 return IsScalar(type.base_type) in GenMethod()
106 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
204 if (IsScalar(field.value.type.base_type) && !field.IsOptional()) in GenTableBuilders()
Didl_gen_go.cpp571 if (!IsScalar(field.value.type.base_type) && (!struct_def.fixed)) { in BuildFieldOfTable()
580 if (!IsScalar(field.value.type.base_type) && (!struct_def.fixed)) { in BuildFieldOfTable()
625 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
718 if (IsScalar(field.value.type.base_type)) { in GenStructMutator()
725 if (IsScalar(field.value.type.element)) { in GenStructMutator()
800 if (IsScalar(field.value.type.base_type) && in GenNativeStruct()
881 if (IsScalar(field.value.type.base_type)) continue; in GenNativeTablePack()
921 if (IsScalar(field.value.type.element)) { in GenNativeTablePack()
955 if (IsScalar(field.value.type.base_type)) { in GenNativeTablePack()
994 if (IsScalar(field.value.type.base_type)) { in GenNativeTableUnPack()
[all …]
Didl_gen_csharp.cpp161 return IsScalar(type.base_type) in GenTypeGet()
203 return IsScalar(type.base_type) ? SourceCast(type) : ""; in SourceCastBasic()
250 if (!IsScalar(value.type.base_type)) { in GenDefaultValueBasic()
363 if (IsScalar(type.base_type)) { in GenSetter()
377 return IsScalar(type.base_type) ? MakeCamel(GenTypeBasic(type, false)) in GenMethod()
647 if ((IsScalar(field.value.type.base_type) || in GenStruct()
649 IsScalar(field.value.type.element)))) { in GenStruct()
663 if (IsScalar(field.value.type.base_type)) { in GenStruct()
741 : (IsScalar(field.value.type.element) ? default_cast + "0" in GenStruct()
829 IsScalar(field.value.type.VectorType().base_type)) || in GenStruct()
[all …]
Didl_gen_kotlin.cpp174 !IsScalar(field.value.type.VectorType().base_type))) { in GetterReturnType()
181 return IsScalar(type.base_type) ? GenTypeBasic(type.base_type) in GenTypeGet()
349 if (IsScalar(type.base_type)) { in ByteBufferSetter()
381 return IsScalar(type.base_type) ? ToSignedType(type) in GenMethod()
805 if (!IsScalar(field.value.type.base_type)) { in GenerateTableCreator()
841 if (!IsScalar(field.value.type.base_type)) { in GenerateTableCreator()
918 if (IsScalar(value_base_type)) { in GenerateStructGetters()
1082 IsScalar(field.value.type.VectorType().base_type)) || in GenerateStructGetters()
1161 if (IsScalar(value_base_type) || in GenerateStructGetters()
1163 IsScalar(value_type.VectorType().base_type))) { in GenerateStructGetters()
Didl_gen_cpp.cpp680 if (IsScalar(type.base_type)) { in GenTypeWire()
692 if (IsScalar(type.base_type)) { in GenTypeSize()
815 if (IsScalar(type.base_type)) { in GenTypeGet()
826 (IsScalar(element_type.base_type) in GenTypeGet()
841 if (IsScalar(element_type.base_type)) { in GenTypeSpan()
1008 auto et = IsScalar(bt) || bt == BASE_TYPE_STRING in GenMiniReflect()
1604 IsScalar(field.value.type.base_type)) || in GenUnderlyingCast()
1641 } else if (type.enum_def && IsScalar(type.base_type)) { in GetDefaultScalarValue()
1721 if (IsScalar(field.value.type.base_type)) { in GenMember()
1754 if (IsScalar(field.value.type.base_type)) { in GenDefaultConstructor()
[all …]
Didl_gen_ts.cpp272 if (IsScalar(type.base_type)) { in GenTypeName()
295 return IsScalar(type.base_type) ? MakeCamel(GenType(type)) in GenWriteMethod()
817 if (IsScalar(field.value.type.base_type) || is_string) { in GenObjApi()
1095 if (IsScalar(field.value.type.base_type) || is_string) { in GenStruct()
1230 } else if (IsScalar(field.value.type.element)) { in GenStruct()
1265 if (IsScalar(field.value.type.base_type) && parser.opts.mutable_buffer && in GenStruct()
1308 if (IsScalar(vectorType.base_type) && !IsLong(vectorType.base_type)) { in GenStruct()
1379 if (!IsScalar(field.value.type.base_type)) { in GenStruct()
1548 if (!IsScalar(field.value.type.base_type)) { argname += "Offset"; } in GetArgName()
Didl_gen_swift.cpp273 if (IsScalar(field.value.type.base_type) && !IsEnum(field.value.type)) { in GenMutableStructReader()
542 field.IsOptional() && IsScalar(field.value.type.base_type); in GenTableWriterFields()
556 if (IsScalar(field.value.type.base_type) && in GenTableWriterFields()
658 if (IsScalar(field.value.type.base_type) && !IsEnum(field.value.type) && in GenTableReaderFields()
749 IsScalar(vectortype.base_type) == true ? "0" : "nil"); in GenTableReaderVectorFields()
750 auto nullable = IsScalar(vectortype.base_type) == true ? "" : "?"; in GenTableReaderVectorFields()
770 if (IsScalar(vectortype.base_type) && !IsEnum(vectortype) && in GenTableReaderVectorFields()
1206 if (IsScalar(field.value.type.base_type) && in BuildObjectAPIConstructorBody()
1490 return IsScalar(type.base_type) in GenType()
Didl_gen_dart.cpp342 if (IsScalar(type.base_type)) { in GenReaderTypeName()
573 } else if (IsScalar(field.value.type.base_type)) { in GenImplementationGetters()
715 if (IsScalar(field.value.type.base_type)) { in TableBuilderBody()
807 if (IsScalar(field.value.type.base_type) || IsStruct(field.value.type)) in GenObjectBuilder()
905 if (IsScalar(field.value.type.base_type)) { in TableObjectBuilderBody()
Didl_gen_php.cpp603 if (IsScalar(field.value.type.VectorType().base_type)) { in BuildVectorOfTable()
677 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
855 return IsScalar(field.value.type.base_type) in GenMethod()
909 return IsScalar(type.base_type) ? GenTypeBasic(type) : GenTypePointer(type); in GenTypeGet()
Didl_parser.cpp756 auto valid = IsScalar(type.base_type) || IsStruct(type); in ParseField()
759 valid |= IsScalar(elem_type.base_type) || IsStruct(elem_type); in ParseField()
883 const bool optional = IsScalar(type.base_type) in ParseField()
891 if (required && (struct_def.fixed || IsScalar(type.base_type))) { in ParseField()
897 if (!IsScalar(type.base_type) && !IsString(type)) { in ParseField()
1005 if (!IsScalar(typefield->value.type.base_type)) { in ParseField()
1258 if (IsIdent("null") && !IsScalar(field->value.type.base_type)) { in ParseTable()
1943 if (!match && is_tok_string && IsScalar(in_type) && in ParseSingleValue()
1962 if (!match && IsScalar(in_type) && attribute_ == "null") { in ParseSingleValue()
1977 if (!match && is_tok_string && IsScalar(in_type)) { in ParseSingleValue()
[all …]
Didl_gen_python.cpp398 if (!(IsScalar(vectortype.base_type))) { return; } in GetVectorOfNonStructAsNumpy()
578 if (!IsScalar(field.value.type.base_type) && (!struct_def.fixed)) { in BuildFieldOfTable()
697 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
1176 if (!(IsScalar(field.value.type.VectorType().base_type))) { in GenUnPackForScalarVector()
1647 return (IsScalar(field.value.type.base_type) || IsArray(field.value.type)) in GenMethod()
1678 return IsScalar(type.base_type) ? GenTypeBasic(type) : GenTypePointer(type); in GenTypeGet()
Didl_gen_lua.cpp490 if (IsScalar(field.value.type.base_type)) { in GenStructAccessor()
612 return IsScalar(field.value.type.base_type) in GenMethod()
642 return IsScalar(type.base_type) ? GenTypeBasic(type) : GenTypePointer(type); in GenTypeGet()
Didl_gen_rust.cpp163 } else if (IsScalar(type.base_type)) { in GetFullType()
210 return field.IsOptional() || !IsScalar(field.value.type.base_type); in IsOptionalToBuilder()
927 if (!IsScalar(field.value.type.base_type) || field.IsOptional()) { in GetDefaultValue()
1916 const bool is_scalar = IsScalar(field.value.type.base_type); in GenTable()
Didl_gen_text.cpp296 IsScalar(fd.value.type.base_type) && !fd.deprecated; in GenStruct()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dapply_momentum_scale_fusion.h28 scale_ = std::make_shared<CondVar>(IsScalar);
41 static bool IsScalar(const BaseRef &n);
Dapply_momentum_weight_scale_fusion.h30 scale_ = std::make_shared<CondVar>(IsScalar);
43 static bool IsScalar(const BaseRef &n);
Dapply_momentum_scale_fusion.cc29 bool ApplyMomentumScaleFusion::IsScalar(const BaseRef &n) { in IsScalar() function in mindspore::opt::ApplyMomentumScaleFusion
Dapply_momentum_weight_scale_fusion.cc31 bool ApplyMomentumWeightDecayScaleFusion::IsScalar(const BaseRef &n) { in IsScalar() function in mindspore::opt::ApplyMomentumWeightDecayScaleFusion
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dfusion_eltwise.cc220 if (IsScalar(tensor->shape())) { in InitWeights()
279 if (IsScalar(in_tensor->shape())) { in SetConstArgs()
341 if (IsScalar(in_tensors_[i]->shape())) { in Codegen()
368 bool is_scalar = IsScalar(shape); in Codegen()
Dfusion_eltwise.h176 static inline bool IsScalar(const std::vector<int> &shape) { in IsScalar() function
Dsparse_to_dense.cc181 weight_scalar_ = in_tensors_[2]->IsScalar(); in Prepare()
/third_party/flatbuffers/include/flatbuffers/
Dreflection.h33 inline bool IsScalar(reflection::BaseType t) { in IsScalar() function
288 if (!IsScalar(type)) { return false; } in SetField()
/third_party/mindspore/mindspore/lite/src/
Dtensor.h182 bool IsScalar() const { return this->category_ == CONST_SCALAR && this->data_ != nullptr; } in IsScalar() function
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_type.h73 bool IsScalar() const;

12