- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 442 for pushBack (0.22 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc
SmallVector<Value> GetAccessedResources(Operation& op) { SmallVector<Value, 4> accessed_resources; for (auto operand : op.getOperands()) { if (!IsResourceType(operand.getType())) continue; accessed_resources.push_back(operand); } return std::move(accessed_resources); } // Lifts the tail writes outside of tf_device.replicate. The written value is // added to the values returned by tf_device.replicate op. Modify the assign
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 21 15:49:06 UTC 2022 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc
auto dequantize_op = builder->create<TFL::DequantizeOp>( op->getLoc(), dequantized_input_type, input.get()); dequantized_inputs.push_back(dequantize_op); } else { dequantized_inputs.push_back(input.get()); } } // Result types. SmallVector<Type, 4> result_types; for (auto result_type : op->getResultTypes()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.h
worklist.pop(); auto result = u.walk([&](SymbolUserOpInterface op) { if (llvm::isa<T, Types...>(op)) { if (!predicate || predicate(op)) { hits.push_back(op); } else { first_misses.push_back(op); return WalkResult::advance(); } } llvm::SmallVector<func::FuncOp> callees; if (GetCallees(op, symtab, callees).failed()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Dec 16 06:18:49 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
int64_t size = padding_low[i] + shape[i] + (shape[i] - 1) * padding_interm[i]; padding_high.push_back(input_dim - size); } else { dims_to_reverse.push_back(i); padding_high.push_back(input_dim - begin_indices[i] - 1); padding_interm.push_back(-strides[i] - 1); // Pad the lower dimension up to the expected input shape. int64_t size =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
for (int input = 0, e = num_operands + 1; input != e; ++input) { if (input < dst_input) { state.operands.push_back(dst->getOperand(input)); } else if (input == dst_input) { state.operands.push_back(source->getResult(0)); } else { state.operands.push_back(dst->getOperand(input - 1)); } } state.attributes.assign(dst->getAttrs().begin(), dst->getAttrs().end());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
min_maxs.reserve(mins.size() * 2); for (int i = 0, end = mins.size(); i < end; ++i) { llvm::APFloat min(mins[i]); llvm::APFloat max(maxs[i]); min_maxs.push_back(min); min_maxs.push_back(max); } // The layer stats contain only the first min/max pairs. mlir::ElementsAttr layer_stats = mlir::DenseFPElementsAttr::get( tensorflow::GetTypeFromTFTensorShape({2}, b.getF32Type()),
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/host_runtime/tpu_variable_runtime_reformatting.cc
// `replicate`. llvm::SmallVector<Value, 8> reformat_operands; for (const auto& entry : execute_arg_to_outer_args) { reformat_operands.push_back(execute.getArgs()[entry.first]); } reformat_operands.push_back(compile_launch.getResult(1)); reformat_operands.push_back(replicate.GetBody().getArgument( replicate.GetNumReplicatedBlockArguments() - 1)); builder.setInsertionPoint(execute_launch);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc
// each entry function. The one exception are initializer functions, which // have `tf_saved_model.initializer_type` instead. if (IsEntryFunction(func)) { entry_funcs.push_back(func); } }); return entry_funcs; } LogicalResult GetCallees(SymbolUserOpInterface op, SymbolTable &symtab, llvm::SmallVector<func::FuncOp> &callees) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.cc
if (std::fabs(rmax - rmin) < std::numeric_limits<double>::epsilon()) { scales.push_back(1.0); zeroPoints.push_back(qmin); continue; } double scale; int64_t nudgedZeroPoint; getNudgedScaleAndZeroPoint(qmin, qmax, rmin, rmax, scale, nudgedZeroPoint); scales.push_back(scale); zeroPoints.push_back(nudgedZeroPoint); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 11:52:27 UTC 2024 - 7.7K bytes - Viewed (0)