- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for attrName (0.13 sec)
-
pkg/proxy/util/nfacct/nfacct_linux_test.go
// validate attribute(NFACCT_NAME) assert.Equal(t, 1, len(tc.handler.requests[0].data)) assert.Equal(t, tc.handler.requests[0].data[0].Serialize(), nl.NewRtAttr(attrName, nl.ZeroTerminated(tc.counterName)).Serialize(), ) } }) } } func TestRunner_Get(t *testing.T) { testCases := []struct { name string counterName string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 18.8K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
} } void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name, int64_t value) { auto s = tensorflow::unwrap(op)->SetAttrInt(attr_name, value); if (!s.ok()) { LOG(WARNING) << "Unable to set attribute: " << attr_name; } } void TFE_OpSetAttrFloat(TFE_Op* op, const char* attr_name, float value) { auto s = tensorflow::unwrap(op)->SetAttrFloat(attr_name, value); if (!s.ok()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
Status SetAttrString(const char* attr_name, const char* data, size_t length) override; Status SetAttrInt(const char* attr_name, int64_t value) override; Status SetAttrFloat(const char* attr_name, float value) override; Status SetAttrBool(const char* attr_name, bool value) override; Status SetAttrType(const char* attr_name, tensorflow::DataType dtype) override;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/c/kernels.cc
case DataTypeToEnum<type>::value: { \ kernel_builder->cc_builder->TypeConstraint<type>(attr_name); \ break; \ } void AddTypeConstraint(TF_KernelBuilder* kernel_builder, const char* attr_name, const DataType dtype, TF_Status* status) { // This needs to be under tensorflow:: namespace so that
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 36K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
for (auto& attr : func->getAttrs()) { StringRef attr_name = attr.getName().getValue(); if (attr_name.starts_with("tf_saved_model.")) { func->removeAttr(attr_name); } } auto iface = cast<FunctionOpInterface>(func.getOperation()); for (int i = 0; i < func.getNumArguments(); ++i) { for (auto& attr : iface.getArgAttrs(i)) { const StringAttr& attr_name = attr.getName();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc
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/tensorflow/translate/export_tf_dialect_op.cc
// TODO(b/146937733): Don't use <void> here. llvm::StringRef attr_name = mlir::OpTrait::AttrSizedOperandSegments< void>::getOperandSegmentSizeAttr(); attrs_to_ignore.insert(attr_name.data()); } if (inst->hasTrait<mlir::OpTrait::AttrSizedResultSegments>()) { // TODO(b/146937733): Don't use <void> here. llvm::StringRef attr_name = mlir::OpTrait::AttrSizedResultSegments<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc
for (auto& attr : op->getAttrs()) { llvm::StringRef attr_name = attr.getName().getValue(); if (attribute_getter_map.find(attr_name.str()) != attribute_getter_map.end()) { auto attr_val = (attribute_getter_map[attr_name.str()])(rewriter, identifier_to_attr); attrs.push_back(rewriter.getNamedAttr(attr_name, attr_val)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 18.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc
void runOnOperation() override; }; LogicalResult SetOnceModuleAttribute(StringRef attr_name, IntegerAttr attr_value, Operation* op, ModuleOp& module) { const auto ex_attr_value = module->getAttrOfType<IntegerAttr>(attr_name); if (ex_attr_value == nullptr) { module->setAttr(attr_name, attr_value); return success(); } if (ex_attr_value == attr_value) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
} else { auto attr_name = compose_func.getArgAttrOfType<StringAttr>( arg.index(), kAttrArgumentNameAttr); auto attribute = op->getAttr(attr_name.getValue()); if (!attribute) { attribute = compose_func.getArgAttr(arg.index(), kAttrArgumentDefaultAttr); } if (!attribute && attr_name.getValue() == "out_type") {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0)