Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for OkStatus (0.2 sec)

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

      return IsRefType(dt)
                 ? InvalidArgument("Output ", idx, " of node '", node->name(),
                                   "' has a reference type ", DataTypeString(dt))
                 : absl::OkStatus();
    }
    
    // Converts `ninputs` and `inputs` into `inputs_tensors` and `input_nodes` and
    // does various checks while doing so. `input_nodes` will contain the same
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  5. 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)
  6. tensorflow/c/experimental/gradients/math_grad.cc

        DCHECK(grad_outputs[0]);
        grad_inputs[0] = grad_outputs[0];
        grad_inputs[1] = grad_outputs[0];
    
        grad_inputs[0]->Ref();
        grad_inputs[1]->Ref();
        return absl::OkStatus();
      }
      ~AddGradientFunction() override {}
    };
    
    class ExpGradientFunction : public GradientFunction {
     public:
      explicit ExpGradientFunction(AbstractTensorHandle* exp) : exp_(exp) {
        exp->Ref();
      }
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/c/experimental/next_pluggable_device/c_api.cc

            void* opaque_plugin_resource = create_func(create_func_args);
            *new_resource = new tensorflow::PluginResource(
                opaque_plugin_resource, plugin_resource_name, delete_func);
            return tensorflow::OkStatus();
          });
    
      if (cc_status.ok()) {
        tf_plugin_resource_ptr.reset(tf_plugin_resource);
        *result_plugin_resource = tf_plugin_resource_ptr->GetOpaquePluginResource();
      } else {
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  9. tensorflow/c/eager/tape.h

            op_type, output_tensors, input_tensor_id, input_dtypes,
            backward_function_getter, backward_function_deleter);
        return absl::OkStatus();
      }
      if (!ShouldRecord(input_tensor_id, input_dtypes)) {
        return absl::OkStatus();
      }
    
      // We may need to allocate zero inputs for trainable dtypes we don't have JVPs
      // for. Make sure they get cleaned up.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  10. 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)
Back to top