- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 340 for pushBack (0.28 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
for (const Value &arg : cluster_func_op.getOperands()) { if (!mlir::isa<TF::ResourceType>(getElementTypeOrSelf(arg.getType()))) { non_resource_args.push_back(arg); if (has_resources) in_order = false; } else { resource_args.push_back(arg); has_resources = true; } } if (!in_order) { // Functions do not get reused in practice, so skip the check for if the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
if (!mlir::isa<BlockArgument>(value)) island_control_operands.push_back(value); } else { inner_op_operands.push_back(value); } } auto island = rewriter.create<tf_executor::IslandOp>( loc, new_types, island_control_operands); island.getBody().push_back(new mlir::Block); rewriter.setInsertionPointToEnd(&island.getBody().front());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc
for (const mlir::Type &t : types) { if (mlir::isa<mhlo::TokenType>(t)) continue; auto layout = GetTPUInfeedLayout({t}, rewriter); if (failed(layout)) return failure(); v.push_back(layout.value()); } ArrayRef<Attribute> shape(v); return rewriter.getArrayAttr(shape); } else if (mlir::isa<TupleType>(types[0])) { auto tuple_type = mlir::dyn_cast<TupleType>(types[0]);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold.cc
inputs.push_back(preceding_const_op.getValue()); } SmallVector<Attribute> result_values; if (failed(TF::EvaluateOperation(op, inputs, result_values))) { return failure(); } results.clear(); builder.setInsertionPointAfter(op); for (const auto& result_value : result_values) { results.push_back(builder.create<TF::ConstOp>(op->getLoc(), result_value)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/c/eager/tape.h
// GradientTape which uses ones. Gradient* zero = input_tensors[target_index].ZerosLike(); new_zeros.push_back(zero); in_grads.push_back(zero); } else { in_grads.push_back(nullptr); } } else { in_grads.push_back(current_grad->second); } } // Avoid infinite recursion. Whichever forward function we run, it'll end up
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 02 12:40:29 UTC 2024 - 47.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
for (auto list_input : list_op.getOperands()) { auto cast_op = dyn_cast_or_null<CastOp>(list_input.getDefiningOp()); if (!cast_op) return failure(); list_inputs.push_back(cast_op.getArg()); list_input_types.push_back(cast_op.getInputElementType()); } CastValuesToSameType(rewriter, call_op.getLoc(), list_input_types, list_inputs);
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/lite/transforms/post_quantize.cc
auto dequantize_op = llvm::cast<DequantizeOp>(returned_op); Value dequantized_result = dequantize_op.getInput(); output_types.push_back(dequantized_result.getType()); terminator->setOperand(i, dequantized_result); returned_op->erase(); } else { output_types.push_back(returned_value.getType()); } } auto new_func_type = builder.getFunctionType(input_types, output_types);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/importer_test_min_max.cc
input_tensor->quantization->scale.clear(); input_tensor->quantization->zero_point.clear(); input_tensor->quantization->min.push_back(-1.0); input_tensor->quantization->max.push_back(1.0); auto& output_tensor = sub_graph->tensors[op->outputs[0]]; auto shape = output_tensor->shape; output_tensor->quantization->scale.clear();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc
std::vector<TFE_TensorHandle*> compute_fn_inputs; TFE_TensorHandle* input_a = TestScalarTensorHandle(ctx, 2.0f); TFE_TensorHandle* input_b = TestScalarTensorHandle(ctx, 1.0f); compute_fn_inputs.push_back(input_a); compute_fn_inputs.push_back(input_b); TFE_Op* compute_fn_op = TF_ConcreteFunctionMakeCallOp( compute_fn, compute_fn_inputs.data(), compute_fn_inputs.size(), status);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 08:08:45 UTC 2024 - 21.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
launch_results.push_back(result); launch_result_types.push_back(result.getType()); } } } before ? builder->setInsertionPoint(op) : builder->setInsertionPointAfter(op); auto launch = builder->create<mlir::tf_device::LaunchOp>( op->getLoc(), builder->getStringAttr(host_device), launch_result_types); launch.getBody().push_back(launch_block);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0)