Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 350 for attr_ (0.27 sec)

  1. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        op_state.addOperands(op.getOperands());
        op_state.addTypes(op.getResultTypes());
    
        SmallVector<NamedAttribute, 2> attrs;
        std::string parsed_op_name;
        tensorflow::NodeDef node_def;
        if (failed(ParseCustomOption(op.getCustomOption().getValue(), op.getLoc(),
                                     parsed_op_name, attrs, node_def))) {
          return failure();
        }
        if (parsed_op_name != tf_op_name) {
          return op.emitOpError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/BazelFileContentGenerator.groovy

    def _impl(ctx):
        classes = ",".join(
            [_AsClassName(x) for x in ctx.attr.srcs],
        )
        ctx.actions.write(output = ctx.outputs.out, content = _OUTPUT % (
            classes,
            ctx.attr.outname,
        ))
    
    _GenSuite = rule(
        attrs = {
            "srcs": attr.label_list(allow_files = True),
            "outname": attr.string(),
        },
        outputs = {"out": "%{name}.java"},
        implementation = _impl,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

        std::vector<NamedAttribute> attrs = contraction->getAttrs();
        ArrayAttr fused_ops_attr = ArrayAttr::get(context, fused_ops);
        attrs.push_back(
            NamedAttribute(StringAttr::get(context, "fused_ops"), fused_ops_attr));
        // Epsilon is used only in fusions with the FusedBatchNorm op, so we zero it
        // here.
        Attribute epsilon = rewriter.getF32FloatAttr(0);
        attrs.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/jit/shape_inference.cc

                  value.add_int64_val(dim.size());
                }
              }
              AddNodeAttr("value", value, &const_def);
              for (auto const& attr : n->attrs()) {
                if (*attr.first.begin() == '_') {
                  AddNodeAttr(attr.first, attr.second, &const_def);
                }
              }
    
              TF_ASSIGN_OR_RETURN(Node * const_node, graph->AddNode(const_def));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_composite_to_tfl_custom.cc

      const char* key = pair.getName().data();
      const auto attr = pair.getValue();
    
      if (mlir::isa<::mlir::IntegerAttr>(attr)) {
        fbb->Int(key, mlir::dyn_cast<mlir::IntegerAttr>(attr).getInt());
        return success();
      }
    
      if (mlir::isa<::mlir::FloatAttr>(attr)) {
        fbb->Double(key, mlir::dyn_cast<mlir::FloatAttr>(attr).getValueAsDouble());
        return success();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

            // Same type repeated "repeats" times.
            Attribute attr = attrs_[output_arg.type_attr()];
            if (!attr)
              return InvalidArgument("Missing attribute '", output_arg.type_attr(),
                                     "' required for output '", output_arg.name(),
                                     "'");
            TypedAttr type_attr = mlir::dyn_cast<TypedAttr>(attr);
            if (!type_attr)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. src/log/slog/doc.go

    # Attrs and Values
    
    An [Attr] is a key-value pair. The Logger output methods accept Attrs as well as
    alternating keys and values. The statement
    
    	slog.Info("hello", slog.Int("count", 3))
    
    behaves the same as
    
    	slog.Info("hello", "count", 3)
    
    There are convenience constructors for [Attr] such as [Int], [String], and [Bool]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 14:35:48 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

      let description = [{
        The `attr` operation stores TF op's attribute, which doesn't support
        arithmetic operations.
    
        Example:
    
        ```mlir
        %1 = "tfr.constant"() { value: i32 } : () -> !tfr.attr
        %2 = "tfr.constant"() { value: [i32, f32] } : () -> !tfr.attr
        %3 = tfr.constant [i32, f32] -> !tfr.attr
        %4 = tfr.constant f32 -> !tfr.attr
        ```
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc

      return absl::OkStatus();
    }
    
    Status Encapsulator::GetFunctionNameAttr(Node const* node, string* attr) const {
      AttrSlice attrs = node->attrs();
      attr->clear();
      for (const auto& node_attr : attrs) {
        if (node_attr.first == group_attribute_) {
          TF_RETURN_IF_ERROR(AttrValueHasType(node_attr.second, "string"));
          *attr = node_attr.second.s();
          break;
        }
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 51K bytes
    - Viewed (0)
Back to top