Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 59 for declTypes (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/c/eager/c_api_unified_experimental_test.cc

        Status s = StatusFromTF_Status(status.get());
        CHECK_EQ(errors::OK, s.code()) << s.message();
      }
    };
    
    TEST_P(UnifiedCAPI, TestBasicEager) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetTfrt(opts, std::get<1>(GetParam()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 39.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tensorflow/cc/experimental/libtf/value.h

      static TaggedValue List() {
        TaggedValue v;
        v.type_ = LIST;
        using T = decltype(v.data_.list);
        new (&v.data_.list) T(std::make_shared<T::element_type>());
        return v;
      }
      /// Constructs a TaggedValue with type TUPLE.
      static TaggedValue Tuple() {
        TaggedValue v;
        v.type_ = TUPLE;
        using T = decltype(v.data_.tuple);
        new (&v.data_.tuple) T(std::make_shared<T::element_type>());
        return v;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:23:45 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    // exist. declType is expected to be a CEL DeclType corresponding to the structural schema.
    // perCallLimit was added for testing purpose only. Callers should always use const PerCallLimit from k8s.io/apiserver/pkg/apis/cel/config.go as input.
    func validator(validationSchema, nodeSchema *schema.Structural, isResourceRoot bool, declType *cel.DeclType, perCallLimit uint64) *Validator {
    	compilationSchema := *nodeSchema
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_experimental_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: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go

    	nested, _ := cust.FindField("nested")
    	metadata, _ := cust.FindField("metadata")
    	expectedObjTypeMap := map[string]*apiservercel.DeclType{
    		"CustomObject":          cust,
    		"CustomObject.nested":   nested.Type,
    		"CustomObject.metadata": metadata.Type,
    	}
    	objTypeMap := map[string]*apiservercel.DeclType{}
    	for name, t := range typeMap {
    		if t.IsObject() {
    			objTypeMap[name] = t
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top