- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 93 for perblock (0.35 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc
Block &block = body.front(); for (const auto &arg_mapping : llvm::zip(block.getArguments(), op->getOperands())) { std::get<0>(arg_mapping).replaceAllUsesWith(std::get<1>(arg_mapping)); } op->getBlock()->getOperations().splice(op->getIterator(), block.getOperations(), block.begin(), std::prev(block.end()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc
if (args_permutation.empty() || res_permutation.empty()) return; mlir::Operation* op = layout_sensitive_interface.getOperation(); Location loc = op->getLoc(); OpBuilder builder = OpBuilder::atBlockEnd(op->getBlock()); auto perm_attr = [&](Permutation permutation) -> DenseIntElementsAttr { auto perm_ty = RankedTensorType::get({4}, builder.getIntegerType(64)); return DenseIntElementsAttr::get(perm_ty, permutation);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.3K bytes - Viewed (0) -
src/archive/tar/writer.go
func (tw *Writer) Flush() error { if tw.err != nil { return tw.err } if nb := tw.curr.logicalRemaining(); nb > 0 { return fmt.Errorf("archive/tar: missed writing %d bytes", nb) } if _, tw.err = tw.w.Write(zeroBlock[:tw.pad]); tw.err != nil { return tw.err } tw.pad = 0 return nil } // WriteHeader writes hdr and prepares to accept the file's contents.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc
if (mlir::dyn_cast_or_null<BlockArgument>(operand)) continue; auto operand_op = operand.getDefiningOp(); if (IsConstant(operand_op)) continue; if (operand_op->getBlock() != op->getBlock()) { return WalkResult::interrupt(); } } return WalkResult::advance(); }); return !walk_result.wasInterrupted(); } // It reduces the following pattern: //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/parse.go
defineLink(label string, link *Link) newText(pos Position, text string) *Text } type blockBuilder interface { extend(p *parseState, s line) (line, bool) build(buildState) Block } type openBlock struct { builder blockBuilder inner []Block pos Position } type itemBuilder struct { list *listBuilder width int haveContent bool } func (p *parseState) last() Block {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 13.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/topological_sort.cc
int incoming_ctrl_edges = 0; int incoming_data_edges = 0; op.walk([&](Operation* child) { ancestor[child] = &op; for (Operation* predecessor : ctrlPredecessors(child)) { if (predecessor->getBlock() == &block) { incoming_ctrl_edges++; } } for (Value v : child->getOperands()) { if (v.getParentBlock() == &block) { incoming_data_edges++; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 08 17:01:11 UTC 2022 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc
return failure(); // Move all inner ops of the launch to the block containing the launch. auto body = launch.GetBody().without_terminator(); Operation* launch_op = launch.getOperation(); launch_op->getBlock()->getOperations().splice( launch_op->getIterator(), launch.GetBody().getOperations(), body.begin(), body.end()); launch.erase(); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc
Value cond_i1 = LowerCondition(loc, op.getCond(), &builder); if (!cond_i1) return failure(); // Split the basic block before the 'if'. The new dest will be our merge // point. Block* orig_block = op_inst->getBlock(); Block* merge_block = orig_block->splitBlock(op); // Add the block arguments to the merge point, and replace all uses of the // original operation results with them. for (Value value : op_inst->getResults())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 13 11:42:59 UTC 2023 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
input.getDefiningOp()); })) return replicated_input.emitOpError() << "expects all inputs from 'tf.TPUPartitionedInputV2' ops"; const auto metadata_iter = replicated_input->getBlock()->getOps<TF::TPUReplicateMetadataOp>(); TF::TPUReplicateMetadataOp metadata; if (!metadata_iter.empty()) metadata = *(metadata_iter.begin()); auto first_partitioned_input = llvm::cast<TF::TPUPartitionedInputV2Op>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 24 23:08:55 UTC 2023 - 7.3K bytes - Viewed (0) -
pkg/volume/csi/expander_test.go
if tc.fsVolume { if capability.GetMount() == nil { t.Errorf("For %s: expected mount accesstype got: %v", tc.name, capability) } } else { if capability.GetBlock() == nil { t.Errorf("For %s: expected block accesstype got: %v", tc.name, capability) } } } }) } } func TestNodeExpandNoClientError(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 03:58:36 UTC 2023 - 6.6K bytes - Viewed (0)