- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 124 for OP (0.06 sec)
-
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
mlir::Operation *op = use.getOwner(); if (llvm::isa<TF::TensorListGetItemOp>(op) || llvm::isa<TF::TensorListLengthOp>(op) || llvm::isa<TF::TensorListPushBackOp>(op) || llvm::isa<TF::TensorListReserveOp>(op) || llvm::isa<TF::TensorListSetItemOp>(op) || llvm::isa<TF::TensorListStackOp>(op) || llvm::isa<TF::TensorListResizeOp>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
operand = rewriter.create<CastOp>(op.getLoc(), tensor_type_f32, operand); } Value result = rewriter.create<MatMulOp>( op.getLoc(), op.getProduct().getType(), operands[0], operands[1], op.getTransposeA(), op.getTransposeB()); rewriter.replaceOp(op, {result}); return success(); } }; // Lowers _UnaryOpsComposition op as a series of original TensorFlow ops that
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
}) .wasInterrupted(); } // Returns whether `op` or any ancestors of `op` are outside compiled. bool HasOutsideCompilationAncestor(Operation* op) { while (op) { if (op->hasAttr(kXlaOutsideCompilationAttr)) { return true; } op = op->getParentOp(); } return false; } // Returns whether any ancestors of `op` are outside compiled.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0) -
tensorflow/cc/gradients/math_grad.cc
return BinaryGradCommon(scope, op, grad_outputs, gx_1, gx_2); } Status MaximumGrad(const Scope& scope, const Operation& op, const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs) { auto comparator = GreaterEqual(scope, op.input(0), op.input(1)); return MaximumMinimumGradCommon(scope, op, grad_inputs, grad_outputs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 50.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc
for (auto& op : graph->operators) { for (int idx = 0; idx < op->inputs.size(); idx++) { if (op->inputs[idx] < 0) { continue; } const auto& tensor = graph->tensors[op->inputs[idx]]; auto* expected_tensor = FindMatchingExpectedTensor( *expected_graph, expected_model, model, *op, idx); if (!expected_tensor) { continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 73.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
} // Returns true if this is a basic LSTM op. bool IsBasicLSTMOp(tflite::BuiltinOptionsUnion op_union) { if (const auto* op = op_union.AsLSTMOptions()) { return op->kernel_type == tflite::LSTMKernelType_BASIC; } else { return false; } } // Gets the MLIR op name with the dialect name for the flatbuffer operator. std::string GetMlirOpName(const tflite::OperatorT& op,
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/sparsecore/embedding_pipelining.cc
return num_ops; } std::vector<Value> ResultsAsVector(Operation* op) { std::vector<Value> vec; vec.reserve(op->getNumResults()); for (auto res : op->getResults()) vec.push_back(res); return vec; } void SetBasicBlockAttributes(OpBuilder& builder, Operation* op) { op->setAttr(kDevice, builder.getStringAttr("")); op->setAttr(kLower, builder.getBoolAttr(true)); }
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/tensorflow/transforms/resource_op_lifting.cc
// to begin with. So we can safely replace each old op result with the // corresponding new op result. int old_num_results = op_->getNumResults(); op_->replaceAllUsesWith(new_op->getResults().take_front(old_num_results)); op_->erase(); op_ = nullptr; } // Lift resource load and stores out of regions attached to `op`, where op is // an If/case/cluster op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
// Returns success if all the operations in the `op`'s regions including `op` // itself are legal in a TFLite pipeline. LogicalResult ValidateOp(Operation *op) { bool has_illegal_ops = false; op->walk([&](Operation *op) { if (isa<TF::VariableV2Op>(op)) { has_illegal_ops = true; op->emitOpError() << "is illegal in a TFLite pipeline"; } });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewritedec64.go
c := auxIntToBool(v.AuxInt) x := v_0 if v_1.Op != OpInt64Make { break } lo := v_1.Args[1] v_1_0 := v_1.Args[0] if v_1_0.Op != OpConst32 || auxIntToInt32(v_1_0.AuxInt) != 0 { break } v.reset(OpLsh16x32) v.AuxInt = boolToAuxInt(c) v.AddArg2(x, lo) return true } // match: (Lsh16x64 x (Int64Make hi lo)) // cond: hi.Op != OpConst32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 22:42:34 UTC 2023 - 65.3K bytes - Viewed (0)