Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for declType (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile.go

    	))
    }
    
    // buildResourceAttributesType generates a DeclType for ResourceAttributes.
    // if attributes are added here, also add to convertObjectToUnstructured.
    func buildResourceAttributesType(field func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField, fields func(fields ...*apiservercel.DeclField) map[string]*apiservercel.DeclField) *apiservercel.DeclType {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 02 20:56:52 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile.go

    		AST:                ast,
    		ExpressionAccessor: expressionAccessor,
    	}, nil
    }
    
    func buildUserType() *apiservercel.DeclType {
    	field := func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField {
    		return apiservercel.NewDeclField(name, declType, required, nil, nil)
    	}
    	fields := func(fields ...*apiservercel.DeclField) map[string]*apiservercel.DeclField {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go

    	}
    	if err := compareFieldsForType(t, requestType, requestDeclType, f, fs); err != nil {
    		t.Error(err)
    	}
    }
    
    func compareFieldsForType(t *testing.T, nativeType reflect.Type, declType *apiservercel.DeclType, field func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField, fields func(fields ...*apiservercel.DeclField) map[string]*apiservercel.DeclField) error {
    	for i := 0; i < nativeType.NumField(); i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go

    		IntroducedVersion: version.MajorMinor(1, 0),
    		EnvOptions: []cel.EnvOption{
    			cel.Variable("variables", declType.CelType()),
    		},
    		DeclTypes: []*apiservercel.DeclType{
    			declType,
    		},
    	})
    	if err != nil {
    		return nil, err
    	}
    	return &CompositionEnv{
    		MapType:           declType,
    		EnvSet:            envSet,
    		CompiledVariables: map[string]CompilationResult{},
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

    namespace parallel_device {
    
    TEST(PARALLEL_DEVICE, TestRemoteBasic) {
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_Context, decltype(&TFE_DeleteContext)> context(
          TFE_NewContext(opts.get(), status.get()), TFE_DeleteContext);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 22:09:57 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  6. tensorflow/cc/experimental/libtf/impl/scalars.h

      return o << x.get();
    }
    
    /** The overloaded addition operator. */
    template <typename T1, typename T2>
    inline auto operator+(const Scalar<T1>& x1, const Scalar<T2>& x2)
        -> Scalar<decltype(x1.get() + x2.get())> {
      using Ret = decltype(x1 + x2);  // Return type of this function.
      return Ret(x1.get() + x2.get());
    }
    
    using Int64 = Scalar<int64_t>;
    using Float32 = Scalar<float>;
    
    }  // namespace impl
    }  // namespace libtf
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 30 17:28:28 UTC 2021
    - 2K bytes
    - Viewed (0)
  7. tensorflow/c/eager/unified_api_testutil.cc

    #include "tensorflow/core/lib/llvm_rtti/llvm_rtti.h"
    #include "tensorflow/core/platform/errors.h"
    
    namespace tensorflow {
    
    AbstractContext* BuildFunction(const char* fn_name) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TF_ExecutionContext* graph_ctx = TF_CreateFunction(fn_name, status.get());
      return unwrap(graph_ctx);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration_test.cc

    using ::testing::StrEq;
    using ::tsl::testing::IsOk;
    
    // Matches an operation whose `getSymName` equals `name`.
    MATCHER_P(HasSymName, name, "") {
      auto non_const_arg = const_cast<std::remove_const_t<decltype(arg)>>(arg);
      *result_listener << "where the name is " << non_const_arg.getSymName().str();
      return non_const_arg.getSymName() == name;
    }
    
    // Matches an operation that has a StringAttr whose name is `name` and value
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 21:41:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

    }
    
    template <typename value_type>
    void ExpectScalarEq(TFE_TensorHandle* handle, value_type expected_value) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> actual_value(
          TFE_TensorHandleResolve(handle, status.get()), TF_DeleteTensor);
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 09 01:12:35 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/unified_api_testutil.h

    Status TestTensorHandleWithDims(AbstractContext* ctx, const T* data,
                                    const int64_t* dims, int num_dims,
                                    AbstractTensorHandle** tensor) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_Context* eager_ctx =
          TF_ExecutionContextGetTFEContext(wrap(ctx), status.get());
      TF_RETURN_IF_ERROR(StatusFromTF_Status(status.get()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top