- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 387 for setAttr (0.11 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
for (int i : llvm::seq<int>(0, metadata.result_devices.size())) { func_op.setResultAttr( i, kTFDeviceAttr, StringAttr::get(context, metadata.result_devices[i])); } func_op->setAttr(kHostAttr, StringAttr::get(context, host)); func_op.setPublic(); Block *block = func_op.addEntryBlock(); // Clones and moves the operations into the function's body. And the cloned
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc
ModuleOp& module) { const auto ex_attr_value = module->getAttrOfType<IntegerAttr>(attr_name); if (ex_attr_value == nullptr) { module->setAttr(attr_name, attr_value); return success(); } if (ex_attr_value == attr_value) { return success(); } return op->emitOpError() << "module already contains an attribute "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc
// LINT.ThenChange(../../../../core/common_runtime/inline_function_utils.cc) for (Block &block : inlinedBlocks) { block.walk([&](Operation *op) { if (op->getDialect() == call->getDialect()) op->setAttr(device_id, node_device(op)); }); } } struct TFInlinerInterface : public DialectInlinerInterface { using DialectInlinerInterface::DialectInlinerInterface;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
to_keep.push_back(sym_ref); } } for (auto func_op : to_remove) rewriter.eraseOp(func_op); if (to_keep.empty()) rewriter.eraseOp(op); else op->setAttr("initializers", rewriter.getArrayAttr(to_keep)); return success(); } }; void SessionInitializerOp::getCanonicalizationPatterns( RewritePatternSet &results, MLIRContext *context) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
class ConvertEmbeddedLookupFunc { public: explicit ConvertEmbeddedLookupFunc(func::FuncOp func) : func_(func) {} void RewriteFunc() { func_->setAttr(kTFImplements, StringAttr::get(func_.getContext(), "embedding_lookup")); Value lookup = func_.getArgument(1); Value value = func_.getArgument(0);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc
if (!preceding_qcast) return failure(); auto new_qcast = rewriter.create<quantfork::QuantizeCastOp>( q_op.getLoc(), q_op.getType(), preceding_qcast.getArg()); new_qcast->setAttr(kVolatileOpAttrName, rewriter.getUnitAttr()); q_op->replaceAllUsesWith(new_qcast); return success(); } }; bool PrepareQuantizePass::ContainsQuantizeOps(func::FuncOp func) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.2K bytes - Viewed (0) -
fastapi/dependencies/utils.py
isinstance(field_info, params.Param) and getattr(field_info, "in_", None) is None ): field_info.in_ = params.ParamTypes.query use_annotation_from_field_info = get_annotation_from_field_info( use_annotation, field_info, param_name, ) if not field_info.alias and getattr(field_info, "convert_underscores", None):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 02 02:52:56 UTC 2024 - 29.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
// tensorflow/lite/kernels/fully_connected.cc. The kernels will handle // the asymmetric_quantize_inputs attribute in the builtin option. dynamic_range_quantized_user->setAttr( kAsymmetricQuantizeInputsAttr, BoolAttr::get(rewriter.getContext(), true)); changed = true; } } return changed; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc
xla::OpSharding sharding = manual_sharding ? ::xla::sharding_builder::Manual() : ::xla::sharding_builder::AssignDevice(kShardingTpuCore); op->setAttr(kShardingAttr, StringAttr::get(op->getContext(), sharding.SerializeAsString())); } // Assigns frontend attributes holding information about data type and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 40.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
updated_input_shapes_attr.emplace_back(input_shapes_attr[i]); } // Replaces the attribute with the updated "#tf_type.shape" array. // Builder builder(func_op.getContext()); func_op->setAttr( kTfInputShapesAttr, ArrayAttr::get(func_op.getContext(), updated_input_shapes_attr)); } } // Validates func ops. Returns `failure` if the function is invalid.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0)