- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 32 for attrType (0.26 sec)
-
tensorflow/cc/framework/cc_op_gen_util.cc
}; auto entry = attr_type_map->find(attr_type); if (entry == attr_type_map->end()) { LOG(FATAL) << "Unsupported Attr type: " << attr_type; return {"", false}; } return entry->second; } StringPiece ListElementTypeName(StringPiece attr_type) { static const auto* attr_list_type_map =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 00:57:05 UTC 2024 - 25K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
StringAttr attr_type) const { if (!attr_type) return attr; if (attr_type.getValue() == "tensor") { if (auto f = mlir::dyn_cast<FloatAttr>(attr)) { RankedTensorType type = RankedTensorType::get({}, f.getType()); return DenseFPElementsAttr::get(type, attr); } // TODO(fengliuai): handles ArrayAttr. Note that it can be nested ArrayAttr.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/python/tfr_gen.py
if not attr_names: return str(attr_type) else: return '{}<{}>'.format(attr_type, ','.join(attr_names)) def _get_val_from_proto(attr_type, attr_val): if attr_type == TFRTypes.I1: return 'true' if attr_val.b else 'false' elif attr_type == TFRTypes.I32 or attr_type == TFRTypes.I64: return attr_val.i elif attr_type == TFRTypes.F32: return attr_val.f
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 27 15:27:03 UTC 2022 - 55.8K bytes - Viewed (0) -
tensorflow/c/kernels.cc
if (!status->status.ok()) { *list_size = -1; *total_size = -1; return; } switch (attr->value_case()) { #define SINGLE_CASE(kK, attr_type, size_expr) \ case tensorflow::AttrValue::kK: \ *list_size = -1; \ *total_size = size_expr; \ break;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 36K bytes - Viewed (0) -
tensorflow/c/kernels.h
// total_size - total size of the list. // (1) If attr_type == TF_ATTR_STRING // then total_size is the cumulative byte size // of all the strings in the list. // (3) If attr_type == TF_ATTR_SHAPE // then total_size is the number of dimensions // of the shape valued attribute, or -1 // if its rank is unknown. // (4) If attr_type == TF_ATTR_SHAPE // then total_size is the cumulative number
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 09 22:46:22 UTC 2024 - 24.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
// Parses a TFR type. // tfr_type ::= tensor_type | tensor_list_type | attr_type // string_list ::= `[` string-literal (, string-literal)+ `]` // tensor_type ::= `tensor` // | `tensor<` (string-literal | string_list) '>' // tensor_list_type ::= `tensor_list` // | `tensor_list<` (string-literal | string_list) '>' // attr_type ::= `attr` Type TFRDialect::parseType(DialectAsmParser &parser) const {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
ArrayRef<int64_t> shape = mlir::cast<ShapedType>(value.getType()).getShape(); auto attr_type = RankedTensorType::get({static_cast<int64_t>(shape.size())}, rewriter.getIntegerType(64)); auto attr = DenseElementsAttr::get(attr_type, shape); return rewriter.create<arith::ConstantOp>(value.getLoc(), attr_type, attr); } bool IsSign(APInt a, APInt sign) { if (a.isZero()) return a == sign;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/c/c_api.cc
if (!status->status.ok()) return metadata; switch (attr->value_case()) { #define SINGLE_CASE(kK, attr_type, size_expr) \ case tensorflow::AttrValue::kK: \ metadata.is_list = 0; \ metadata.list_size = -1; \ metadata.type = attr_type; \ metadata.total_size = size_expr; \ break;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 102.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"AttrStringLength", Const, 0}, {"AttrStringLengthBitSize", Const, 14}, {"AttrStringLengthByteSize", Const, 14}, {"AttrThreadsScaled", Const, 14}, {"AttrTrampoline", Const, 0}, {"AttrType", Const, 0}, {"AttrUpperBound", Const, 0}, {"AttrUseLocation", Const, 0}, {"AttrUseUTF8", Const, 0}, {"AttrVarParam", Const, 0}, {"AttrVirtuality", Const, 0}, {"AttrVisibility", Const, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
src/internal/trace/traceviewer/static/trace_viewer_full.html
for(const attrName in attributes){const attrArgs=attributes[attrName];const attrType=attrArgs.type;const attrValue=attrArgs.value;switch(attrType){case'scalar':{if(attrName in allocatorDump.numerics){this.model_.importWarning({type:'memory_dump_parse_error',message:'Multiple values provided for scalar attribute '+
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 2.5M bytes - Viewed (1)