- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 69 for op_names (0.15 sec)
-
tensorflow/cc/framework/cc_op_gen.cc
string c_decl; for (int i = 0; i < op_info.arg_types.size(); ++i) { if (i > 0) strings::StrAppend(&c_decl, ", "); strings::StrAppend(&c_decl, op_info.arg_types[i], " ", op_info.arg_names[i]); } if (include_attr && op_info.has_optional_attrs) { strings::StrAppend(&c_decl, ", const ", op_info.op_name, "::Attrs& attrs"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 17:22:47 UTC 2023 - 17K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc
bool IsAllowListedOp(Operation *op) { std::string op_name = op->getName().getStringRef().str(); if (IsAlwaysAllowlistedOp(op) || IsTfFakeQuantOp(op)) { return true; } else if (mode_ == kDefaultMode) { return QuantizableOpsInDefaultMode().count(op_name) > 0; } else if (mode_ == kLegacyIntegerMode) { return QuantizableOpsInLegacyMode().count(op_name) > 0; } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py
def _find_op( graph: ops.Graph, op_name: Optional[str] ) -> Optional[ops.Operation]: """Finds the operation with `op_name`. Args: graph: The graph to find from. op_name: Name of the node. Returns: The operation that corresponds to `op_name`. Returns None iff op_name is an empty string or None. Raises: ValueError: `op_name` is malformed. """ if not op_name:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 01:09:50 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/c/eager/gradients.cc
} } // namespace Status GradientRegistry::Register( const string& op_name, GradientFunctionFactory gradient_function_factory) { auto iter = registry_.find(op_name); if (iter != registry_.end()) { const string error_msg = "Gradient already exists for op: " + op_name + "."; return errors::AlreadyExists(error_msg); } registry_.insert({op_name, gradient_function_factory}); return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 19.3K bytes - Viewed (0) -
tensorflow/cc/framework/fuzzing/cc_op_fuzz_gen.cc
return ""; } return std::string(entry->second); } string WriteClassFuzzDef(const OpInfo& op_info) { string class_signature_str = absl::Substitute( "class Fuzz$0 : public FuzzSession<$1> {\n", op_info.op_name, absl::StrJoin(op_info.graph_op_def.input_arg(), ", ", [](string* out, const auto arg) { strings::StrAppend(out, "Tensor");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jan 27 16:26:51 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc
} } return success(); } private: // Parses TFLite Flex op's `custom_options` and returns the TF // `op_name` and TF dialect MLIR op attributes. static LogicalResult ParseCustomOption( StringRef custom_options, Location loc, std::string& op_name, SmallVectorImpl<NamedAttribute>& attributes, tensorflow::NodeDef& node_def) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc
CreateOp op = *this; p << "(" << op.getInCh() << ") key(" << op->getAttrOfType<mlir::IntegerAttr>("op_key").getInt() << ") device(" << op->getAttr("device") << ") " << op->getAttr("op_name") << "()"; fallback_common::PrintExecuteOpCommon(p, op); fallback_common::PrintExecuteOpFuncAttribute(p, op); p << " num_args(" << op->getAttrOfType<mlir::IntegerAttr>("num_args").getInt() << ')'; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 15.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 15.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/quantize.cc
auto custom_op = llvm::dyn_cast_or_null<CustomOp>(op); if (!custom_op) return false; // Custom op which is marked in the custom op map is quantizable. std::string op_name = custom_op.getCustomCode().str(); return (custom_op_map.find(op_name) == custom_op_map.end()) ? false : true; } static bool AllowDynamicRangeQuantizedOperand( Operation* quantized_op, const quant::CustomOpMap& custom_op_map) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc
OpBuilder builder(func); func.walk([&](Operation *op) { if (op->hasTrait<OpTrait::IsTerminator>()) return; auto op_name = op_to_name_(op); // Check the named info collection first. auto it = name_to_info_.find(op_name); if (it != name_to_info_.end()) { ImportAsStatsOps(builder, op, it->second.first, it->second.second); return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 10:41:08 UTC 2024 - 9.9K bytes - Viewed (0)