Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for attr_in (0.12 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/bpxsvc_zos.go

    		return -1, -1, -1
    	}
    	var namebuf [1024]byte
    	sz := int32(copy(namebuf[:], path))
    	A2e(namebuf[:sz])
    	attr_sz := uint32(unsafe.Sizeof(*attr))
    	var parms [7]unsafe.Pointer
    	parms[0] = unsafe.Pointer(&sz)
    	parms[1] = unsafe.Pointer(&namebuf[0])
    	parms[2] = unsafe.Pointer(&attr_sz)
    	parms[3] = unsafe.Pointer(attr)
    	parms[4] = unsafe.Pointer(&rv)
    	parms[5] = unsafe.Pointer(&rc)
    	parms[6] = unsafe.Pointer(&rn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc

      std::srand(0);
      for (auto fn : module->getOps<mlir::func::FuncOp>()) {
        for (auto& bb : fn) {
          for (auto& inst : bb) {
            auto attr_id = mlir::StringAttr::get(context, "value");
            if (auto attr = inst.getAttrOfType<mlir::ElementsAttr>(attr_id)) {
              mlir::Attribute rand_val;
              mlir::Type element_type = attr.getShapedType().getElementType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 11:51:44 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

        return func_.emitWarning()
               << "Invalid number of results from " << kMaxUnpooling << ": "
               << func_.getFunctionType().getNumResults();
      }
    
      auto attrs = attr_.getAttrs();
    
      if (failed(HasIntegerArrayWithSize(&func_, attrs, "pool_size", 2))) {
        return failure();
      }
    
      if (failed(HasIntegerArrayWithSize(&func_, attrs, "strides", 2))) {
        return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

                     StringAttr::get(func_.getContext(), kCustomSSDPostprocessing));
    
      OpBuilder builder(func_.getBody());
      std::string custom_option_buffer;
      if (failed(CreateNMSCustomOptions(func_, attr_.getAttrs(),
                                        custom_option_buffer))) {
        return failure();
      }
      auto op = builder.create<CustomOp>(
          func_.getLoc(), func_.getFunctionType().getResults(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

                           .getLeafReference()
                           .getValue());
        // Remove the attribute from the instruction as it is already converted to
        // op_name.
        auto attr_id = mlir::StringAttr::get(inst->getContext(), "f");
        inst->removeAttr(attr_id);
      } else {
        // Some control flow ops in TensorFlow Graph have their respective "Ref" ops
        // as well. For example there is Enter and RefEnter op. RefEnter forwards
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

    LogicalResult ConvertToI32Attr(IntegerAttr attr, IntegerAttr* attr_i32) {
      if (attr.getType().isInteger(/*width=*/32)) {
        *attr_i32 = attr;
        return success();
      }
    
      int64_t value = attr.getInt();
      if (value > std::numeric_limits<int>::max() ||
          value < std::numeric_limits<int>::min()) {
        return failure();
      }
    
      *attr_i32 = IntegerAttr::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

            string_attr.getValue() == kNullAttributeValue) {
          continue;
        }
    
        if (std::find_if(
                attr_to_op_map.begin(), attr_to_op_map.end(), [&](auto attr_op) {
                  return std::get<0>(attr_op).getName() == attribute.getName();
                }) == attr_to_op_map.end()) {
          emitError(UnknownLoc::get(&context),
                    "Could not find attribute: " + attribute.getName().str());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          tensorflow::Tensor tensor(list->element_dtype,
                                    tensorflow::TensorShape(result_shape));
          auto attr_or = tensorflow::ConvertTensor(tensor, &rewriter);
          if (!attr_or.ok()) return failure();
          rewriter.replaceOpWithNewOp<TF::ConstOp>(op, attr_or.value());
          return success();
        }
    
        // Extract individual tensor list element and combine them using the tf.Pack
        // op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

    LogicalResult ConvertToI32Attr(IntegerAttr attr, IntegerAttr* attr_i32) {
      if (attr.getType().isInteger(/*width=*/32)) {
        *attr_i32 = attr;
        return success();
      }
    
      int64_t value = attr.getInt();
      if (value > std::numeric_limits<int>::max() ||
          value < std::numeric_limits<int>::min()) {
        return failure();
      }
    
      *attr_i32 = IntegerAttr::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
Back to top