- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for OkStatus (0.15 sec)
-
tensorflow/c/eager/dlpack.cc
return absl::OkStatus(); case 16: *tf_dtype = TF_DataType::TF_INT16; return absl::OkStatus(); case 32: *tf_dtype = TF_DataType::TF_INT32; return absl::OkStatus(); case 64: *tf_dtype = TF_DataType::TF_INT64; return absl::OkStatus(); default: return tensorflow::errors::InvalidArgument("Unsupported Int bits: ",
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 12.8K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad.cc
// Calculate Grad std::string name = "relu_grad"; TF_RETURN_IF_ERROR(ReluGrad(ctx, upstream_grad, activations, &grad_inputs[0], name.c_str())); return absl::OkStatus(); } ~ReluGradientFunction() override { for (auto output : forward_outputs_) { if (output) { output->Unref(); } } } private:
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 5.7K bytes - Viewed (0) -
tensorflow/c/eager/unified_api_testutil.h
TFE_TensorHandle* input_eager = TestTensorHandleWithDims<T, datatype>(eager_ctx, data, dims, num_dims); *tensor = unwrap(TF_CreateAbstractTensorFromEagerTensor(input_eager, status.get())); return absl::OkStatus(); } // Return a scalar tensor handle with given value. template <class T, TF_DataType datatype> Status TestScalarTensorHandle(AbstractContext* ctx, const T value,
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Feb 27 13:57:45 GMT 2024 - 4K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/tape/tape_operation.cc
TF_RETURN_IF_ERROR(parent_op_->AddInput(input)); forward_op_.inputs.push_back(input); return OkStatus(); } Status TapeOperation::AddInputList( absl::Span<AbstractTensorHandle* const> inputs) { TF_RETURN_IF_ERROR(parent_op_->AddInputList(inputs)); for (auto input : inputs) { forward_op_.inputs.push_back(input); } return OkStatus(); } Status TapeOperation::SetAttrString(const char* attr_name, const char* data,
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jun 07 01:53:35 GMT 2022 - 9K bytes - Viewed (1) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
return absl::OkStatus(); } Status SetAttrFloat(const char* attr_name, float value) override { op_->node_builder.Attr(attr_name, value); return absl::OkStatus(); } Status SetAttrBool(const char* attr_name, bool value) override { op_->node_builder.Attr(attr_name, value); return absl::OkStatus(); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 15.4K bytes - Viewed (1) -
tensorflow/c/eager/gradients.cc
forward_op_->inputs.push_back(input); return absl::OkStatus(); } Status AddInputList(AbstractOperation* op_, absl::Span<AbstractTensorHandle* const> inputs, ForwardOperation* forward_op_) { TF_RETURN_IF_ERROR(op_->AddInputList(inputs)); for (auto input : inputs) { forward_op_->inputs.push_back(input); } return absl::OkStatus(); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 19.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc
"Trying to register filesystem without `cleanup` operation"); return OkStatus(); } // Validates the random access file operations supplied by the plugin. static Status ValidateHelper(const TF_RandomAccessFileOps* ops) { if (ops == nullptr) { // We allow filesystems where files can only be written to (from TF code) return OkStatus(); } if (ops->cleanup == nullptr)
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 07 22:08:43 GMT 2023 - 12.8K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler_internal.h
bool UsesFunctionLibrary() const override { return false; } Status Init( const tensorflow::RewriterConfig_CustomGraphOptimizer* config) override { return OkStatus(); } Status Optimize(Cluster* cluster, const GrapplerItem& item, GraphDef* optimized_graph_def) override; ~CGraphOptimizer() override { if (optimizer_.destroy_func != nullptr) {
C - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Wed Jun 08 08:58:23 GMT 2022 - 3.5K bytes - Viewed (1) -
tensorflow/c/experimental/grappler/grappler.cc
VALIDATE_MEMBER(TP_OptimizerRegistrationParams, params, device_type); return absl::OkStatus(); } absl::Status ValidateTPOptimizer(const TP_Optimizer& optimizer) { VALIDATE_STRUCT_SIZE(TP_Optimizer, optimizer, TP_OPTIMIZER_STRUCT_SIZE); VALIDATE_MEMBER(TP_Optimizer, optimizer, optimize_func); return absl::OkStatus(); } absl::Status ValidateTPOptimizerConfigs(const TP_OptimizerConfigs& configs) {
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 15K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
if (read > 0) *result = StringPiece(scratch, read); return StatusFromTF_Status(plugin_status.get()); } Status ModularRandomAccessFile::Name(StringPiece* result) const { *result = filename_; return OkStatus(); } Status ModularWritableFile::Append(StringPiece data) { if (ops_->append == nullptr) return errors::Unimplemented(tensorflow::strings::StrCat( "Append() not implemented for ", filename_));
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 23.1K bytes - Viewed (0)