Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for getRand (0.3 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.h

      return type && type.getRank() == rank &&
             mlir::isa<FloatType>(type.getElementType());
    }
    
    // Returns true if the given `value` has the specified rank or has unranked
    // type.
    inline bool IsOfRankOrUnranked(Value value, int64_t rank) {
      RankedTensorType type = GetRankedTensorTypeForOperand(value);
      return !type || type.getRank() == rank;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.cc

      if (!dims_type) return success();
      if (dims_type.getRank() > 1)
        return emitError(loc, "dimensions can only be 0D or 1D tensor");
    
      auto input_type = mlir::dyn_cast<RankedTensorType>(input.getType());
      if (!input_type) return success();
      int64_t rank = input_type.getRank();
    
      DenseIntElementsAttr dims_attr;
      if (!matchPattern(dims, m_Constant(&dims_attr))) return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc

      const int64_t input_rank =
          mlir::dyn_cast<ShapedType>(dot_general_op.getOperand(0).getType())
              .getRank();
      const int64_t filter_rank =
          mlir::dyn_cast<ShapedType>(dot_general_op.getOperand(1).getType())
              .getRank();
      // The following conditions are such requirements:
      //   - rank(lhs) is 1 or 2
      //   - rank(rhs) = 2
      //   - size(lhs_contracting_dimensions) = 1
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

      if (!image_type || !image_type.getElementType().isF32() ||
          image_type.getRank() != 4) {
        return func_.emitWarning() << "Image should be a 4D float tensor";
      }
    
      auto flow_type = mlir::dyn_cast_or_null<RankedTensorType>(
          func_.getFunctionType().getInput(1));
      if (!flow_type || !flow_type.getElementType().isF32() ||
          flow_type.getRank() != 4) {
        return func_.emitWarning() << "Flow should be a 4D float tensor";
    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/quantization/common/ir/QuantOps.cc

        if (!mlir::isa<FloatType>(layerStatsType.getElementType())) {
          return emitOpError("layerStats must have a floating point element type");
        }
        if (layerStatsType.getRank() != 1 || layerStatsType.getDimSize(0) != 2) {
          return emitOpError("layerStats must have shape [2]");
        }
      }
      // Verify axisStats (optional) attribute.
      if (getAxisStats()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.cc

        if (!mlir::isa<FloatType>(layerStatsType.getElementType())) {
          return emitOpError("layerStats must have a floating point element type");
        }
        if (layerStatsType.getRank() != 1 || layerStatsType.getDimSize(0) != 2) {
          return emitOpError("layerStats must have shape [2]");
        }
      }
      // Verify axisStats (optional) attribute.
      if (getAxisStats()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. security/pkg/util/jwtutil.go

    	case float64:
    		expiration = time.Unix(int64(exp), 0)
    	case json.Number:
    		v, _ := exp.Int64()
    		expiration = time.Unix(v, 0)
    	}
    	return expiration, nil
    }
    
    // GetAud returns the claim `aud` from the token. Returns nil if not found.
    func GetAud(token string) ([]string, error) {
    	claims, err := parseJwtClaims(token)
    	if err != nil {
    		return nil, err
    	}
    
    	rawAud := claims["aud"]
    	if rawAud == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

      // If the original type doesn't have a rank, then refine as the updated type
      // has a rank.
      if (!original.hasRank()) return true;
    
      // Both types must have the same rank.
      if (original.getRank() != updated.getRank()) return false;
    
      // Refine if the updated type is bounded.
      return IsBounded(updated);
    }
    
    // Propagates more refined type by cloning op using the new operands. This
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. security/pkg/util/jwtutil_test.go

    		},
    		"two audiences list": {
    			jwt: twoAudList,
    			aud: []string{"abc", "xyz"},
    		},
    	}
    
    	for id, tc := range testCases {
    		t.Run(id, func(t *testing.T) {
    			if got, _ := GetAud(tc.jwt); !reflect.DeepEqual(tc.aud, got) {
    				t.Errorf("want audience %v but got %v", tc.aud, got)
    			}
    		})
    	}
    }
    
    func TestBase64UrlPartDecoding(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. pilot/pkg/model/policyattachment.go

    			targetRef.GetKind() == gvk.KubernetesGateway.Kind &&
    			target.Name == gatewayName &&
    			(targetRef.GetNamespace() == "" || targetRef.GetNamespace() == p.Namespace) {
    			return true
    		}
    
    		// Service attached
    		if p.IsWaypoint &&
    			config.CanonicalGroup(targetRef.GetGroup()) == gvk.Service.CanonicalGroup() &&
    			targetRef.GetKind() == gvk.Service.Kind &&
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top