Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 121 for getExt (0.39 sec)

  1. security/pkg/credentialfetcher/plugin/gce.go

    		}
    	}
    }
    
    func (p *GCEPlugin) shouldRotate(now time.Time) bool {
    	p.tokenMutex.RLock()
    	defer p.tokenMutex.RUnlock()
    
    	if p.tokenCache == "" {
    		return true
    	}
    	exp, err := util.GetExp(p.tokenCache)
    	// When fails to get expiration time from token, always refresh the token.
    	if err != nil || exp.IsZero() {
    		return true
    	}
    	rotate := now.After(exp.Add(-gracePeriod))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

        auto arg_metadata = metadata.mutable_args(arg_index);
        if (arg_metadata->enable_xla_sharding() ==
            ::tensorflow::tpu::TPUCompileMetadataProto_Arg::ALLOWED) {
          int64_t ret_index =
              mlir::cast<IntegerAttr>(
                  execute.getDeviceVarUpdatesIndices().getValue()[entry.index()])
                  .getInt();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. src/math/big/nat.go

    	}
    	m := a + (b-a)/2 // avoid overflow
    	return z.mul(nat(nil).mulRange(a, m), nat(nil).mulRange(m+1, b))
    }
    
    // getNat returns a *nat of len n. The contents may not be zero.
    // The pool holds *nat to avoid allocation when converting to interface{}.
    func getNat(n int) *nat {
    	var z *nat
    	if v := natPool.Get(); v != nil {
    		z = v.(*nat)
    	}
    	if z == nil {
    		z = new(nat)
    	}
    	*z = z.make(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      if (!num_cores_per_replica_attr)
        return cluster.emitOpError(
            CreateMissingAttributeMsg(tensorflow::kNumCoresPerReplicaAttr));
      int num_cores_per_replica = num_cores_per_replica_attr.getInt();
    
      auto topology_attr = cluster->getAttrOfType<StringAttr>("topology");
      if (!topology_attr)
        return cluster.emitOpError(
            CreateMissingAttributeMsg(tensorflow::kTopologyAttr));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. security/pkg/util/jwtutil_test.go

    			expectedExp: time.Time{},
    			expectedErr: fmt.Errorf("failed to decode the JWT claims"),
    		},
    	}
    
    	for id, tc := range testCases {
    		t.Run(id, func(t *testing.T) {
    			exp, err := GetExp(tc.jwt)
    			if err != nil && tc.expectedErr == nil || err == nil && tc.expectedErr != nil {
    				t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/utils.td

    def GetOffSet : NativeCodeCall<"TFL::GetOffSet($0, $1)">;
    
    // Attribute Constraint that checks if the attribute value is zero.
    def ZeroIntAttr
      : AttrConstraint<CPred<"$_self.cast<::mlir::IntegerAttr>().getInt() == 0">>;
    
    // Checks if the value has rank at most 'n'.
    class HasRankAtLeast<int n> : Constraint<
        CPred<"$0.getType().cast<ShapedType>().hasRank() && "
              "$0.getType().cast<ShapedType>().getRank() >= " # n>>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        return false;
      if (ExtractSingleElementAsInteger(k).getInt() != 0) return false;
    
      // Extract num_rows constant tensor and check value = -1.
      ElementsAttr num_rows;
      if (!matchPattern(tf_matrix_diag_v2_or_v3_op.getNumRows(),
                        m_Constant(&num_rows)))
        return false;
      if (ExtractSingleElementAsInteger(num_rows).getInt() != -1) return false;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

        }
    
        for (auto i = 0; i < window_strides.size(); ++i) {
          window_strides_vec.push_back(
              window_strides.getValues<IntegerAttr>()[i].getInt());
        }
    
        for (auto i = 0; i < base_dilations.size(); ++i) {
          base_dilations_vec.push_back(
              base_dilations.getValues<IntegerAttr>()[i].getInt());
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

      if (!int_attr) {
        return func.emitError()
               << attribute.c_str() << " attribute is not set or not an integer";
      }
      builder->Int(attribute.c_str(), int_attr.getInt());
      return success();
    }
    
    LogicalResult ConvertSSDPostProcessFunc::AddFloatAttr(
        func::FuncOp func, DictionaryAttr attrs, const std::string& attribute,
        flexbuffers::Builder* builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top