- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for eraseOp (0.22 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
for (Operation *user : llvm::make_early_inc_range(old_result.getUsers())) rewriter.replaceOp(user, ValueRange(new_result)); } // Erase original unpack operation. rewriter.eraseOp(op.getOperation()); return success(); } } // namespace void UnpackOp::getCanonicalizationPatterns(RewritePatternSet &results,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
PatternRewriter& rewriter) const override { ElementsAttr cst; if (matchPattern(op.getCondition(), m_Constant(&cst))) { if (cst.getValues<bool>()[0]) { rewriter.eraseOp(op); return success(); } } return failure(); } }; } // namespace void AssertOp::getCanonicalizationPatterns(RewritePatternSet& results,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
conv_op.getLoc(), new_conv.getResult(), rewriter.getI64TensorAttr(transpose_order)); conv_op->replaceAllUsesWith(output_transpose); rewriter.eraseOp(conv_op); } else { SmallVector<int32_t, 4> output_shape_i32; for (int64_t dim : mlir::cast<RankedTensorType>(conv_op.getResult().getType()) .getShape()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
values_slice_op.erase(); } if (!indices.use_empty()) { auto indices_slice_op = llvm::dyn_cast_or_null<TFL::SliceOp>( indices.getUses().begin().getUser()); indices_slice_op.getResult().replaceAllUsesWith(top_k_op.getIndices()); indices_slice_op.erase(); } op.erase(); return success(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
"of indices"); } } if ((indices_rank == 0) || (indices_rank == batch_dims_i)) { // Scalar indices (output is rank(params) - 1). // Erase shape[axis] shape.erase(shape.begin() + axis_i); } else if (indices_rank == 1) { // Vector indices (output is rank(params)). // Copy indices.shape into params.shape[axis]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
for (auto it : llvm::zip(control_node_op.getOutputs(), cloned_inner->getResults())) { std::get<0>(it).replaceAllUsesWith(std::get<1>(it)); } rewriter.eraseOp(outer_op); } return control_edges; } } // namespace namespace tflite { bool MlirToFlatBufferTranslateFunction(mlir::ModuleOp module,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
// Collect mapping of OutputTensor to associated block arg. arg_nodes_to_values.try_emplace({arg_node.node, arg_node.index}, arg_def); island->getResult(0).replaceAllUsesWith(arg_def); // Erase control outputs from feed. auto control_uses = island->getResult(1).getUses(); for (auto& control_use : llvm::make_early_inc_range(control_uses))
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/jit/encapsulate_subgraphs_pass_test.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 113.3K bytes - Viewed (0) -
src/crypto/x509/x509_test.go
} template.AuthorityKeyId = []byte{1, 2, 3, 4} if cert := serialiseAndParse(t, template); len(cert.AuthorityKeyId) == 0 { t.Fatalf("self-signed certificate erased explicit authority key id") } } func TestNoSubjectKeyIdInCert(t *testing.T) { template := &Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{ CommonName: "Σ Acme Co",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
bool EmptyQueue() const { return queue_.empty(); } // Returns function from the front of the work queue. func::FuncOp pop_front() { func::FuncOp ret = queue_.front(); queue_.pop(); queue_set_.erase(ret); return ret; } // Returns the current size of the queue. std::queue<func::FuncOp>::size_type QueueSize() const { return queue_.size(); } Dialect* const tf_dialect_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0)