- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for attr_ (0.06 sec)
-
tensorflow/c/experimental/ops/gen/cpp/views/attr_view.cc
string c_base_type = attr_.base_type(); if (attr_.base_type() == "type") { c_base_type = "DataType"; } else if (attr_.base_type() == "shape") { c_base_type = "const PartialTensorShape"; } // ... and wrap in a Span<> if it's a list. if (attr_.is_list()) { return absl::Substitute("absl::Span<$0>", c_base_type); } else { return c_base_type; } return attr_.full_type(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 03 07:02:00 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc
} auto attrs = attr_.getAttrs(); if (failed(HasIntegerArrayWithSize(&func_, attrs, "pool_size", 2))) { return failure(); } if (failed(HasIntegerArrayWithSize(&func_, attrs, "strides", 2))) { return failure(); } // Retrieves padding. auto padding = mlir::dyn_cast_or_null<StringAttr>(attrs.get("padding")); if (!padding) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td
/*filter_width*/(GetI32At<1> (GetAsVectorAttr<"kernel_size"> $attrs)), /*padding*/(GetAvgPoolOpPadAttr $old_val), /*stride_h*/(GetI32At<0> (GetAsVectorAttr<"stride"> $attrs)), /*stride_w*/(GetI32At<1> (GetAsVectorAttr<"stride"> $attrs)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h
for (const NamedAttribute &attr : from->getAttrs()) if (P(attr)) to->setAttr(attr.getName(), attr.getValue()); } // Copies attributes whose name begins with an _ from `from` to `to`. inline void CopyUnderscoredAttributes(Operation *from, Operation *to) { CopyAttributes(from, to, [](const NamedAttribute &attr) { return attr.getName().strref().front() == '_'; }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.h
bool EnsureAttribute(const DictionaryAttr& composite_attributes, const std::string& attr_name, AttrType* out_attr) { Attribute attr = composite_attributes.get(attr_name); if (!mlir::isa_and_nonnull<AttrType>(attr)) { return false; } if (AttrType content = mlir::dyn_cast<AttrType>(attr)) { *out_attr = content; return true; } else { return false; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 18:33:05 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/jit/node_matchers_test.cc
"to be 0 but found 1"); } TEST(NodeMatchers, Attrs) { Scope root = Scope::NewRootScope().ExitOnError(); Output enter = ops::internal::Enter( root.WithOpName("enter"), ops::Placeholder(root.WithOpName("data"), DT_FLOAT), "frame_name", ops::internal::Enter::Attrs{}.IsConstant(true)); EXPECT_THAT(enter.node(), NodeWith(Attr("is_constant", true)));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 14:43:57 UTC 2024 - 9.1K bytes - Viewed (0) -
tools/istio-iptables/pkg/log/nflog.go
if attrs.UID != nil { uid = *attrs.UID } if attrs.GID != nil { gid = *attrs.GID } inDev, outDev := "", "" if attrs.InDev != nil { ii, err := net.InterfaceByIndex(int(*attrs.InDev)) if err == nil { inDev = ii.Name } } if attrs.OutDev != nil { ii, err := net.InterfaceByIndex(int(*attrs.OutDev)) if err == nil { outDev = ii.Name } } iptablesTrace.WithLabels(
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 15:59:40 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_patterns.td
(TFL_TransposeOp (TFL_ResizeBilinearOp (TFL_TransposeOp $input, (Arith_ConstantOp ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 2, 3, 1}">)), (Arith_ConstantOp:$output_size (GetI32DenseAttr (GetAsVectorAttr<"output"> $attrs))), (GetCompositeAttributeAs<"align_corners", "BoolAttr"> $attrs), ConstBoolAttrTrue,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 18:45:51 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc
auto operand_size_attr = builder.getDenseI32ArrayAttr(operand_sizes); NamedAttrList attrs(send_op->getAttrs()); attrs.set(send_op.getOperandSegmentSizeAttr(), operand_size_attr); AddOperandAndRewriteAs<XlaSendTPUEmbeddingGradientsOp>(send_op, dedup_op, attrs, &builder); } return success(); } void RewriteTPUEmbeddingOps::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 22:55:42 UTC 2024 - 4.5K bytes - Viewed (0) -
pkg/kube/krt/filter.go
} func (f *filter) String() string { attrs := []string{} if !f.keys.IsNil() { attrs = append(attrs, "keys="+f.keys.String()) } if f.selectsNonEmpty != nil { attrs = append(attrs, fmt.Sprintf("selectsNonEmpty=%v", f.selectsNonEmpty)) } if f.selects != nil { attrs = append(attrs, fmt.Sprintf("selects=%v", f.selects)) } if f.labels != nil { attrs = append(attrs, fmt.Sprintf("labels=%v", f.labels)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 4.8K bytes - Viewed (0)