Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 52 for declTypes (0.38 sec)

  1. tensorflow/c/experimental/gradients/custom_gradient_test.cc

                                              /*result=*/outputs));
      exp_output->Unref();
      return absl::OkStatus();
    }
    
    TEST_P(CustomGradientTest, ExpWithPassThroughGrad) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      AbstractContextPtr ctx;
      {
        AbstractContext* ctx_raw = nullptr;
        Status s =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function_test.cc

                        const char* description = nullptr,
                        bool append_hash = false) {
      std::unique_ptr<TF_Graph, decltype(&TF_DeleteGraph)> func_graph(
          TF_NewGraph(), TF_DeleteGraph);
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> s(TF_NewStatus(),
                                                               TF_DeleteStatus);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go

    			t.Errorf("expected field %q to have type %v, got %v", field.Name, field.Type, declField.Type)
    		}
    	}
    }
    
    func nativeTypeToCELType(t *testing.T, nativeType reflect.Type) *apiservercel.DeclType {
    	switch nativeType {
    	case reflect.TypeOf(""):
    		return apiservercel.StringType
    	case reflect.TypeOf([]string{}):
    		return apiservercel.NewListType(apiservercel.StringType, -1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/openapi/adaptor.go

    }
    
    func UnstructuredToVal(unstructured any, schema *spec.Schema) ref.Val {
    	return common.UnstructuredToVal(unstructured, &Schema{schema})
    }
    
    func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType {
    	return common.SchemaDeclType(&Schema{Schema: s}, isResourceRoot)
    }
    
    func MakeMapList(sts *spec.Schema, items []interface{}) (rv common.MapList) {
    	return common.MakeMapList(&Schema{Schema: sts}, items)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 10 21:26:55 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      for (int device_index = 0; device_index < num_underlying_devices();
           ++device_index) {
        auto device_value = absl::make_unique<DataType>();
        *device_value = values[device_index];
        std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> tensor(
            TF_NewTensor(
                datatype_enum, /*dims=*/nullptr, /*num_dims=*/0,
                device_value.release(), sizeof(DataType),
                [](void* data, size_t, void* arg) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 25 15:21:13 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental_test.cc

      TFE_DeleteTensorHandle(m);
      TFE_DeleteContext(ctx);
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, TensorHandleNullptr) {
      TFE_TensorHandle* h = nullptr;
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
    
      const char* device_type = TFE_TensorHandleDeviceType(h, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_test.cc

        EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      }
      TF_DeleteDeviceList(devices);
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, TensorHandle) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    }
    
    // Decltype is the decltype operator.
    type Decltype struct {
    	Expr AST
    }
    
    func (dt *Decltype) print(ps *printState) {
    	ps.writeString("decltype")
    	if !ps.llvmStyle {
    		ps.writeString(" ")
    	}
    	ps.startScope('(')
    	ps.print(dt.Expr)
    	ps.endScope(')')
    }
    
    func (dt *Decltype) Traverse(fn func(AST) bool) {
    	if fn(dt) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/common/schemas.go

    // if their schema is not exposed.
    //
    // The CEL declaration for objects with XPreserveUnknownFields does not expose unknown fields.
    func SchemaDeclType(s Schema, isResourceRoot bool) *apiservercel.DeclType {
    	if s == nil {
    		return nil
    	}
    	if s.IsXIntOrString() {
    		// schemas using XIntOrString are not required to have a type.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 18:00:45 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. tensorflow/cc/experimental/libtf/object.h

    // the created lambda functor class.
    template <typename TLambda>
    class CallableWrapperUnpackArgs
        : public CallableWrapperUnpackArgs<decltype(&TLambda::operator())> {
     public:
      CallableWrapperUnpackArgs(TLambda fn, const char* name)
          : CallableWrapperUnpackArgs<decltype(&TLambda::operator())>(fn, name) {}
    };
    
    // This specialization unpacks the arguments from a normal function pointer.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
Back to top