- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 230 for GetOperation (0.22 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc
input_shapes_ = input_shapes_vec; } auto failure_or_converged = InferModuleShape( getOperation(), max_iterations_, /*ops_to_skip=*/{}, input_shapes_); if (failed(failure_or_converged)) return signalPassFailure(); if (!failure_or_converged.value()) { getOperation().emitError() << "shape inference pass did not reach convergence after " << max_iterations_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
if (!op.isPrivate()) return; auto call = llvm::dyn_cast<CallableOpInterface>(op.getOperation()); if (!call) return; Region* region = call.getCallableRegion(); if (!region) return; // happens e.g. for external functions auto func = llvm::dyn_cast<FunctionOpInterface>(op.getOperation()); if (!func || do_not_touch.count(func)) return; llvm::BitVector unused_args(func.getNumArguments());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
func::FuncOp callee = from.lookup<func::FuncOp>(symbol_ref.getValue()); callee.getOperation()->getBlock()->getOperations().remove( callee.getOperation()); to.insert(callee); } void TPUBridgeExecutorIslandOutlining::runOnOperation() { MLIRContext *ctx = &getContext(); SymbolTable symbol_table(getOperation()); if (Operation *nested_module = symbol_table.lookup(kNestedModule)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
plugin/pkg/admission/noderestriction/admission.go
} return nil default: return admission.NewForbidden(a, fmt.Errorf("unexpected operation %s", a.GetOperation())) } } func (p *Plugin) admitPVCStatus(nodeName string, a admission.Attributes) error { switch a.GetOperation() { case admission.Update: oldPVC, ok := a.GetOldObject().(*api.PersistentVolumeClaim) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 23.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
rewriter.setInsertionPointToEnd(&func.getBody().front()); rewriter.create<func::ReturnOp>( loc, executor_graph.getOperation()->getResults()); rewriter.replaceOp(graph_func.getOperation(), func.getOperation()->getResults()); return success(); } }; class ConvertReturnOp : public OpConversionPattern<tfg::ReturnOp> { public:
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/launch_to_device_attribute.cc
void LaunchToDeviceAttributePass::runOnOperation() { const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); if (!tf_dialect) { getOperation().emitError() << "'tf' dialect is not registered"; return signalPassFailure(); } auto result = getOperation().walk([&tf_dialect](tf_device::LaunchOp launch) { if (failed(HoistOpsAndAnnotateWithDevice(tf_dialect, launch))) return WalkResult::interrupt();
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/sparsecore/embedding_program_key.cc
if (failed(MoveStandalonePreprocessingOp(&builder, getOperation(), op))) return signalPassFailure(); } RewritePreprocessInputs(&builder, getOperation(), op); } // Handle ops with mini_batch_in_csr attribute. preprocess_ops.clear(); getOperation().walk([&](Operation* op) { if (op->hasAttr(kMiniBatchCsrAttr)) { preprocess_ops.push_back(op); } });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
mlir::SymbolRefAttr sym = callable.dyn_cast<mlir::SymbolRefAttr>(); auto symbol = mlir::SymbolTable::lookupNearestSymbolFrom(call.getOperation(), sym); if (!symbol) return failure(); auto f = llvm::dyn_cast<mlir::func::FuncOp>(symbol); if (call.getOperation()->getNumOperands() != f.getBody().front().getNumArguments()) { return failure(); // RemoteCall et al }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
Operation* inlined_point = call_op.getOperation(); Operation* after_inlined_point = &*std::next(Block::iterator(call_op.getOperation())); // Use the inliner to replace all the uses of the call_op by its // composition. if (failed(inlineCall(inliner, cast<CallOpInterface>(call_op.getOperation()),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc
int64_t total_size_transferred = 0; for (auto input : to_graph.getOperands()) { Operation* input_op = input.getDefiningOp(); if (input_op && input_op == from_graph.getOperation()) { auto input_type = mlir::dyn_cast_or_null<RankedTensorType>(input.getType()); if (input_type == nullptr || !input_type.hasStaticShape()) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.3K bytes - Viewed (0)