- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 96 for type_attr (0.23 sec)
-
tensorflow/cc/framework/cc_op_gen_util.cc
} return string(name); } void InferArgAttributes(const OpDef::ArgDef& arg, std::unordered_map<string, string>* inferred_attrs) { if (!arg.type_attr().empty()) { gtl::InsertIfNotPresent(inferred_attrs, arg.type_attr(), arg.name()); } else if (!arg.type_list_attr().empty()) { gtl::InsertIfNotPresent(inferred_attrs, arg.type_list_attr(), arg.name()); } if (!arg.number_attr().empty()) {
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/python/tfr_gen.py
attr_type, attr_def.name, attr_def.type) else: attr_names = [] if arg_def.number_attr: attr_names.append(arg_def.number_attr) if arg_def.type_attr: attr_names.append(arg_def.type_attr) if arg_def.type_list_attr: attr_names.append(arg_def.type_list_attr) # TODO(fengliuai): currently we don't support backward type inference, so we
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/compiler/mlir/lite/flatbuffer_import.cc
for (auto type_and_name : llvm::zip(intermediate_types, kIntermediateNames)) { mlir::TypeAttr type_attr = mlir::TypeAttr::get(std::get<0>(type_and_name)); auto named_attr = builder.getNamedAttr(std::get<1>(type_and_name), type_attr); op_state.addAttribute(named_attr.getName(), named_attr.getValue()); } } return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
return false; } } return true; } // Returns the tensor type created from the `shape_attr` and `type_attr` // attributes. Type GetType(Attribute shape_attr, Attribute type_attr) { auto shape = mlir::cast<tf_type::ShapeAttr>(shape_attr); auto type = mlir::cast<TypeAttr>(type_attr); if (shape.hasRank()) return tensorflow::GetTypeFromTFTensorShape(shape.getShape(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
type_attr = attr_value_pb2.AttrValue(type=types_pb2.DT_QINT8) if quantize: self.assertTrue( self._contains_op(output_graphdef, 'Const', 'dtype', type_attr) ) else: self.assertFalse( self._contains_op(output_graphdef, 'Const', 'dtype', type_attr) ) @parameterized.named_parameters(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
tensorflow/cc/saved_model/testdata/chunked_saved_model/chunked_model/saved_model.pbtxt
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 21:43:11 UTC 2023 - 531.2K bytes - Viewed (0) -
subprojects/diagnostics/src/main/resources/org/gradle/api/tasks/diagnostics/htmldependencyreport/jquery.jstree.js
if(!obj || obj === -1) { obj = this.get_container().find("> ul > li"); } li_attr = $.isArray(li_attr) ? li_attr : [ "id", "class" ]; if(!is_callback && this.data.types) { li_attr.push(s.types.type_attr); } a_attr = $.isArray(a_attr) ? a_attr : [ ]; obj.each(function () { li = $(this); tmp1 = { data : [] }; if(li_attr.length) { tmp1.attr = { }; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 09:03:42 UTC 2021 - 49.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
if (matchPattern(cst_tensor_op.getArg(), m_Constant(&array))) { llvm::DenseSet<Type> all_types; for (auto it : array) { TypedAttr typed_attr = it.dyn_cast<TypedAttr>(); if (!typed_attr) return failure(); all_types.insert(typed_attr.getType()); } if (all_types.size() != 1) return failure(); ShapedType new_out_type = RankedTensorType::get(
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/tensorflow/transforms/decompose_reduce_dataset.cc
llvm::SmallVector<Attribute, 2> shape_attrs; llvm::SmallVector<Attribute, 2> type_attrs; for (Type type : dataset_types) { shape_attrs.push_back( TF::ShapeAttr::get(builder.getContext(), mlir::cast<ShapedType>(type))); type_attrs.push_back(TypeAttr::get(getElementTypeOrSelf(type))); } auto anonymous_iterator = builder.create<AnonymousIteratorV3Op>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
} attribute = TypeAttr::get(type); } Value attr_cst; // Wrap these special attributes as a special TFR constant, so the SSA // value has a valid type to be used as TFR function argument. These // attributes are not expected to be manipulated by the lowering passes. if (mlir::isa<TypeAttr>(attribute) || mlir::isa<ArrayAttr>(attribute) ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0)