- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 59 for declTypes (0.26 sec)
-
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) -
tensorflow/c/c_test_util.h
#include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/framework/types.pb.h" #include "tensorflow/core/platform/test.h" using ::tensorflow::string; typedef std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> unique_tensor_ptr; TF_Tensor* BoolTensor(int32_t v); // Create a tensor with values of type TF_INT8 provided by `values`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 09 01:06:53 UTC 2018 - 6K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go
// ::= <template-prefix> <template-args> // ::= <template-param> // ::= <decltype> // ::= // ::= <substitution> // // <template-prefix> ::= <prefix> <(template) unqualified-name> // ::= <template-param> // ::= <substitution> // // <decltype> ::= Dt <expression> E // ::= DT <expression> E func (st *state) prefix() AST { var a AST
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 94.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
} // For LLVM style RTTI. static bool classof(const AbstractContext* ptr) { return ptr->getKind() == kGraph; } private: std::unique_ptr<TF_Graph, decltype(&TF_DeleteGraph)> graph_; std::vector<TF_Output> inputs_; string name_; }; static TracingContext* GraphTracingFactory(const char* name, TF_Status* s) { return new GraphContext(name); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 20:00:09 UTC 2024 - 15.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
} void CheckTFE_TensorHandleHasFloats(TFE_TensorHandle* handle, const std::vector<float>& expected_values) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TF_Tensor* t = TFE_TensorHandleResolve(handle, status.get()); ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 10:03:59 UTC 2023 - 19.3K bytes - Viewed (0)