- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for new_args (0.15 sec)
-
tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc
// Replace all external uses with block args and update uses. llvm::SmallVector<Value, 4> new_args; new_args.reserve(extern_values.size()); Block& block = func_region.front(); for (Value value : extern_values) { auto arg = block.addArgument(value.getType(), loc); replaceAllUsesInRegionWith(value, arg, func_region); new_args.push_back(arg); } // Replace yield op with return.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc
ValueRange old_args = block.getArguments().take_front(old_args_size); ValueRange new_args = block.getArguments().drop_front(old_args_size); assert(!new_args.empty()); ReplaceWithTupleResult(builder, old_args, new_args, /*flatten_tuple=*/true); auto new_arg = new_args[new_args.size() - 1]; block.eraseArguments(0, old_args_size); return new_arg; } // Updates control flow op terminator with an extra element `token`.
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/quantization/tensorflow/passes/insert_main_function.cc
<< ". [Output] Expected: " << output_names.size() << ", got: " << main_func.getNumResults(); return false; } const int num_args = main_func.getNumArguments(); for (int i = 0; i < num_args; ++i) { main_func.setArgAttr( i, kTfSavedModelIndexPathAttr, ArrayAttr::get(context, {StringAttr::get(context, input_names[i])})); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
return it->getFirst().getType(); }; auto add_size_vars_to_return = [&](ArrayRef<BlockArgument> new_args) { if (new_args.empty()) return; auto body_ret = body.front().getTerminator(); auto new_body_returns = llvm::to_vector<8>(body_ret->getOperands()); for (auto arg : new_args) new_body_returns.push_back(arg); OpBuilder(body_ret).create<func::ReturnOp>(body_ret->getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
} // Partial update of args. We expect this to be sufficient // for evaluating cond(). args_2a = update_args(args_1, N_1) // NO T_1 here // Conditional for step 2 C_2 = cond(args_2) new_while_body (new_args) { // starts at i==2 // Finish step i-2 B_im2 = backward(args_im2, N_im2, F_im2, T_im2) // Advance step i-1 T_im1 = core_tpu(args_im1, N_im1, F_im1) // Finish the update of args_2
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
auto& bb = func.front(); auto loc = func.getLoc(); int num_args = bb.getNumArguments(); llvm::SmallVector<Type, 4> input_types; input_types.reserve(num_args); // Edit the block arguments and create the new input ops in place to replace // the old input ops and quantize ops. for (int i = 0; i != num_args; ++i) { // Previous loop iteration may invalidate the insertion point so we have to
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
} throw new ParameterHasNoDistinctValueException(params.get(i)); } newArgs.set(i, newArg); tester.addEqualityGroup(createInstance(factory, newArgs)); argGroups.add(ImmutableList.of(newArgs)); } tester.testEquals(); } /** * Returns dummy factory arguments that are equal to {@code args} but may be different instances,
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 32.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
arg_type = quantize_output.getType(); new_arg = block.addArgument(arg_type, loc); quantize_output.replaceAllUsesWith(new_arg); } else if (input_type.isUnsignedInteger( current_type.getIntOrFloatBitWidth())) { // int8 != uint8 arg_type = quant::ConvertSignedQuantizedToUnsigned( quantize_output.getType(), loc); new_arg = block.addArgument(arg_type, loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
} throw new ParameterHasNoDistinctValueException(params.get(i)); } newArgs.set(i, newArg); tester.addEqualityGroup(createInstance(factory, newArgs)); argGroups.add(ImmutableList.of(newArgs)); } tester.testEquals(); } /** * Returns dummy factory arguments that are equal to {@code args} but may be different instances,
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 32.7K bytes - Viewed (0) -
fastapi/_compat.py
field_annotation_is_scalar(sub_annotation) for sub_annotation in get_args(annotation) ) def is_bytes_or_nonable_bytes_annotation(annotation: Any) -> bool: if lenient_issubclass(annotation, bytes): return True origin = get_origin(annotation) if origin is Union or origin is UnionType: for arg in get_args(annotation): if lenient_issubclass(arg, bytes):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 22.6K bytes - Viewed (0)