- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for setAttrs (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
state.operands.push_back(source->getResult(0)); } else { state.operands.push_back(dst->getOperand(input - 1)); } } state.attributes.assign(dst->getAttrs().begin(), dst->getAttrs().end()); state.types.assign(dst->getResultTypes().begin(), dst->getResultTypes().end()); builder_.setInsertionPoint(dst); auto* new_dst = builder_.create(state);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
if (failed(::mlir::TF::UpdateDataFormat(data_format, this))) return failure(); // Update convolution attributes. (*this)->setAttr("dilations", ShuffleArrayAttr(getDilations(), perm)); (*this)->setAttr("strides", ShuffleArrayAttr(getStrides(), perm)); (*this)->setAttr("explicit_paddings", ShuffleArrayAttr(getExplicitPaddings(), perm, 2)); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
pkg/kubelet/kubelet_node_status_test.go
v1.ResourceEphemeralStorage: *resource.NewQuantity(5000, resource.BinarySI), }, } // Since this test retroactively overrides the stub container manager, // we have to regenerate default status setters. kubelet.setNodeStatusFuncs = kubelet.defaultNodeStatusFuncs() kubeClient := testKubelet.fakeKubeClient existingNode := v1.Node{ObjectMeta: metav1.ObjectMeta{Name: testKubeletHostname}}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 19:23:19 UTC 2024 - 115.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go
} return storage.SelectionPredicate{ Label: labels.Everything().Add(*l), Field: fields.Everything(), GetAttrs: getPodAttrs, } } func matchEverything() storage.SelectionPredicate { return storage.SelectionPredicate{ Label: labels.Everything(), Field: fields.Everything(), GetAttrs: func(obj runtime.Object) (label labels.Set, field fields.Set, err error) { return nil, nil, nil }, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 101.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
p.printGenericOp(op, /*printOpName=*/false); return; } p << ' '; p.printOperands(op->getOperands()); p.printOptionalAttrDict(op->getAttrs()); // Now we can output only one type for all operands and the result. p << " : " << resultType; } Operation* getDefiningBroadcastArgsOp(Value operand) { auto* defining_op = operand.getDefiningOp();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
pkg/registry/batch/job/strategy_test.go
} for name, tc := range cases { t.Run(name, func(t *testing.T) { if tc.job == nil { _, _, err := GetAttrs(tc.nonJobObject) if diff := cmp.Diff(tc.wantErr, err.Error()); diff != "" { t.Errorf("Unexpected errors (-want,+got):\n%s", diff) } } else { gotLabels, _, err := GetAttrs(tc.job) if err != nil { t.Errorf("Error %s supposed to be nil", err.Error()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 101.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
auto tf_fused_batch_norm_op_v3 = CreateTfOp<TF::FusedBatchNormV3Op>( rewriter, tf_fused_batch_norm_op, new_result_types, tf_fused_batch_norm_op.getOperands(), tf_fused_batch_norm_op->getAttrs()); rewriter.replaceOp(tf_fused_batch_norm_op, tf_fused_batch_norm_op_v3->getResults().drop_back()); return success(); } }; } // namespace.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
auto name = attr.getName(); return name == "call_target_name" || name == "backend_config" || name == "api_version" || name == "called_computations"; }; for (const auto& attr : op->getAttrs()) { if (!is_supported_attr_name(attr)) { return op.emitOpError() << attr.getName().getValue() << " is not a supported attribute for ApproxTopK"; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
.str()); // building the computation info auto flex_builder = std::make_unique<flexbuffers::Builder>(); size_t map_start = flex_builder->StartMap(); auto attrs = vhlo_op->getAttrs(); std::vector<mlir::NamedAttribute> extra_attributes; for (size_t i = 0; i < attrs.size(); ++i) { auto name = attrs[i].getName().str(); auto attr = attrs[i].getValue();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0)