- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 646 for Auto (0.16 sec)
-
tensorflow/compiler/jit/device_executable_persistor_test.cc
Scope scope = Scope::NewRootScope().ExitOnError(); auto a = ops::_Arg(scope.WithOpName("A"), DT_INT32, 0); auto b = ops::_Arg(scope.WithOpName("B"), DT_INT32, 1); if (mul) { auto c = ops::Mul(scope.WithOpName("C"), a, b); auto d = ops::_Retval(scope.WithOpName("D"), c, 0); TF_RETURN_IF_ERROR(scope.ToGraph(graph.get())); } else { auto c = ops::Add(scope.WithOpName("C"), a, b);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 25.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
if (auto while_op = llvm::dyn_cast<TF::WhileOp>(use.getOwner())) { auto body = while_op.body_function(); assert(body); auto type_from_body = GetElementTypeFromAccess( body.getArgument(use.getOperandNumber()), module, infer_from_op); if (type_from_body.has_value()) return type_from_body; } else if (auto if_op = llvm::dyn_cast<TF::IfOp>(use.getOwner())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
OpBuilder builder(func); func.walk([&](SparseOpInterface sparse_op) { const auto& sparse_operands = sparse_op.GetSparseOperands(); std::vector<std::vector<int>> supported_block_size; for (int operand : sparse_operands) { auto* op = sparse_op.getOperation(); auto value = op->getOperand(operand); auto* inst = value.getDefiningOp(); if (!inst) { continue; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
auto attr = mlir::dyn_cast<ArrayAttr>(named_attr.getValue()); if (!attr) { return op->emitError() << "'" << kTfSavedModelIndexPathAttr << "' attribute should be an ArrayAttr"; } for (auto element : attr) { if (mlir::isa<StringAttr>(element)) { continue; } if (auto integer = mlir::dyn_cast<IntegerAttr>(element)) {
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/tfr/ir/tfr_ops.cc
auto symRef = callee.get<SymbolRefAttr>(); return setCalleeAttr(cast<FlatSymbolRefAttr>(symRef)); } // Indirect call, callee Value is the first operand. return setOperand(0, callee.get<Value>()); } LogicalResult ConstantTensorOp::verify() { ConstantTensorOp op = *this; auto input_type = op.getArg().getType(); auto output_type = op.getOut().getType();
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/tfl_stablehlo_pass.cc
llvm::SmallVector<mlir::NamedAttribute, 4> attrs; const auto& keys = m.Keys(); for (size_t i = 0; i < keys.size(); ++i) { const auto key = keys[i].AsKey(); const auto& value = m[key]; switch (value.GetType()) { case flexbuffers::FBT_INT: { auto attr = value.AsInt64(); auto named_attr = builder->getNamedAttr(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc
Output arg1 = ops::_Arg(s.WithOpName("arg1"), DT_BOOL, 1); NameAttrList f; f.set_name("f1"); auto if_op = ops::If(s.WithOpName("if"), arg1, std::initializer_list<Input>{arg0, arg1}, {DT_BOOL, DT_RESOURCE}, f, f); auto ret0 = ops::_Retval(s.WithOpName("ret0"), if_op.output[0], 0); auto ret1 = ops::_Retval(s.WithOpName("ret1"), if_op.output[1], 1); NameAttrList cond_fn, body_fn;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 11:36:41 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/cc/training/queue_runner_test.cc
} GraphDef BuildDoubleQueueGraph() { Scope root = Scope::NewRootScope(); auto q0 = FIFOQueue(root.WithOpName(kQueueName0), {DataType::DT_INT32}); auto ten = Const(root, 10); auto enqueue0 = QueueEnqueue(root.WithOpName(kEnqueueOp0), q0, {ten}); auto close0 = QueueClose(root.WithOpName(kCloseOp0), q0); auto cancel0 = QueueClose(root.WithOpName(kCancelOp0), q0,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Sep 21 06:27:51 UTC 2019 - 14.7K bytes - Viewed (0) -
tensorflow/c/ops.cc
TF_ShapeHandle* result, TF_Status* status) { \ auto* cc_ctx = reinterpret_cast<InferenceContext*>(ctx); \ auto* cc_handle = reinterpret_cast<ShapeHandle*>(handle); \ auto* cc_result = reinterpret_cast<ShapeHandle*>(result); \ Status s = cc_ctx->func_name(*cc_handle, rank, cc_result); \
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 28 22:41:35 UTC 2022 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc
if (!devices.has_value()) { return op->emitOpError() << "devices attribute is not present in 'tf.device.replicate' op"; } auto logical_core_name = tensorflow::GetDeviceAliasForLogicalCore(logical_core); auto tpu_replica = devices.value().get(logical_core_name); if (!tpu_replica) { return op->emitOpError() << "requires device ordinal from device " << logical_core_name
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 24 21:01:40 UTC 2023 - 16.9K bytes - Viewed (0)