Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for attr_ (0.11 sec)

  1. tensorflow/c/c_api.cc

      for (it = attrs.begin(); it != attrs.end(); it++) {
        if (count == i) {
          return it->first.length();
        }
        count++;
      }
      return -1;
    }
    
    void TF_OperationGetAttrName(TF_Operation* oper, int i, char* output,
                                 TF_Status* status) {
      auto attrs = oper->node.attrs();
      int count = 0;
      AttrValueMap::const_iterator it;
      for (it = attrs.begin(); it != attrs.end(); it++) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

          NamedAttrList attrs;
          for (const auto& func_attr : value.func().attr()) {
            TF_ASSIGN_OR_RETURN(
                auto attr, ImporterBase::ConvertAttributeValue(func_attr.second));
            attrs.push_back(builder_.getNamedAttr(func_attr.first, attr));
          }
          auto func_attrs = builder_.getDictionaryAttr(attrs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

              // According to the definition, the default value of these attributes
              // are all ones when unspecified.
              if (!attr.has_value()) return true;
              if (attr->getType().getShape()[0] != operand_type.getRank())
                return false;
              if (!attr->isSplat()) return false;
              if (attr->getElementType() != rewriter.getIntegerType(64))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      std::vector<Item> attrs(node_def.attr().begin(), node_def.attr().end());
      std::sort(attrs.begin(), attrs.end(),
                [](Item& p1, Item& p2) -> bool { return p1.first < p2.first; });
      for (const Item& pair : attrs) {
        const char* key = pair.first.c_str();
        const ::tensorflow::AttrValue& attr = pair.second;
        switch (attr.value_case()) {
          case ::tensorflow::AttrValue::kS:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      // Return operand as a constant attribute.
      auto operand_as_constant_fn = [&](Value operand) {
        ValuePort vp(operand);
        Attribute attr = ComputeOutputComponent(vp);
        if (!attr && matchPattern(operand, m_Constant(&attr)))
          RecordValue(vp, attr);
        return attr;
      };
    
      // Return op result as a shape.
      auto op_result_as_shape_fn = [&](InferenceContext& context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    // Attribute holding a single value of float type. If attr has no elements, the
    // result is 0.0f.
    TypedAttr ConvertSingleElementAttrToFloatAttr(Attribute attr) {
      const auto dense_fp_attr = mlir::dyn_cast_or_null<DenseFPElementsAttr>(attr);
      if (dense_fp_attr) {
        // Already float => return
        return dense_fp_attr;
      }
    
      OpBuilder builder(attr.getContext());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        DenseIntElementsAttr attr;
        if (axis_type.getElementType().isInteger(32)) {
          attr = DenseIntElementsAttr::get(axis_type, static_cast<int32_t>(axis));
        } else {
          assert(axis_type.getElementType().isInteger(64));
          attr = DenseIntElementsAttr::get(axis_type, axis);
        }
        auto axis_const = rewriter.create<TF::ConstOp>(loc, attr);
    
        auto concat =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      auto check = [&](mlir::Value val, std::string attr_name) -> LogicalResult {
        ElementsAttr attr;
        if (matchPattern(val, m_Constant(&attr))) {
          if (attr.getShapedType().getRank() != 1) {
            return op.emitOpError()
                   << "expects the rank of " << attr_name << "to be 1, got "
                   << attr.getShapedType().getRank();
          }
          if (input_ty.hasRank()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func GetFileAttributes(name *uint16) (attrs uint32, err error) {
    	r0, _, e1 := syscall.Syscall(procGetFileAttributesW.Addr(), 1, uintptr(unsafe.Pointer(name)), 0, 0)
    	attrs = uint32(r0)
    	if attrs == INVALID_FILE_ATTRIBUTES {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet.go

    			otherPods = append(otherPods, op)
    		}
    		attrs.OtherPods = otherPods
    	}
    	for _, podAdmitHandler := range kl.admitHandlers {
    		if result := podAdmitHandler.Admit(attrs); !result.Admit {
    			return false, result.Reason, result.Message
    		}
    	}
    
    	return true, "", ""
    }
    
    func (kl *Kubelet) canRunPod(pod *v1.Pod) lifecycle.PodAdmitResult {
    	attrs := &lifecycle.PodAdmitAttributes{Pod: pod}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top