Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for op_name_ (0.09 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_graph.cc

     private:
      friend class GraphContext;  // For access to op_.
      TF_Graph* g_;
      std::unique_ptr<TF_OperationDescription> op_;
      // Hold `op_type` and `op_name` till both are available since we need both
      // to build a graph operation.
      string op_type_;
      const char* op_name_ = nullptr;
      // TODO(srbs): Use this.
      string device_name_;
    };
    
    // GraphContext wraps a TF_Graph modeling a single function and manages the
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients.cc

    }  // namespace
    
    absl::Status GradientRegistry::Register(
        const string& op_name, GradientFunctionFactory gradient_function_factory) {
      auto iter = registry_.find(op_name);
      if (iter != registry_.end()) {
        const string error_msg = "Gradient already exists for op: " + op_name + ".";
        return errors::AlreadyExists(error_msg);
      }
      registry_.insert({op_name, gradient_function_factory});
      return absl::OkStatus();
    }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

      // `TF_AttrBuilderCheckCanRunOnDevice()` call(s) on the same `builder`.
      std::set<std::string> attr_names;
    };
    
    TF_AttrBuilder* TF_NewAttrBuilder(const char* op_name) {
      return new TF_AttrBuilder(op_name);
    }
    
    void TF_DeleteAttrBuilder(TF_AttrBuilder* builder) { delete builder; }
    
    void TF_AttrBuilderSetType(TF_AttrBuilder* builder, const char* attr_name,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients.h

      // least one input of the op is watched and has a trainable dtype.
      // op_name is optional and is used for debugging only.
      void RecordOperation(absl::Span<AbstractTensorHandle* const> inputs,
                           absl::Span<AbstractTensorHandle* const> outputs,
                           GradientFunction* gradient_function,
                           const string& op_name = "");
      // Returns whether any tensor in a list of tensors is being watched and has
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental.cc

      tsl::Set_TF_Status_from_Status(
          s, unwrap(op)->Reset(op_type,
                               /*raw_device_name=*/nullptr));
    }
    
    void TF_AbstractOpSetOpName(TF_AbstractOp* op, const char* const op_name,
                                TF_Status* s) {
      TracingOperation* tracing_op = dyn_cast<TracingOperation>(unwrap(op));
      if (!tracing_op) {
        tsl::Set_TF_Status_from_Status(
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_unified_experimental_internal.h

     public:
      // Sets the name of the operation: this is an optional identifier that is
      // not intended to carry semantics and preserved/propagated without
      // guarantees.
      virtual absl::Status SetOpName(const char* op_name) = 0;
    
      // For LLVM style RTTI.
      static bool classof(const AbstractOperation* ptr) {
        return ptr->getKind() == kGraph || ptr->getKind() == kMlir;
      }
    };
    
    namespace internal {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

      TF_OperationDescription* init(string type) {
        // Construct op_name to match the name used by REGISTER_OP in the
        // ATTR_TEST_REGISTER calls above.
        string op_name = "CApiAttributesTestOp";
        if (type.find("list(") == 0) {
          op_name += "List";
          type = type.replace(0, 5, "");
          type = type.replace(type.size() - 1, 1, "");
        }
        op_name += type;
        return TF_NewOperation(
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.base.StandardSystemProperty.JAVA_IO_TMPDIR;
    import static com.google.common.base.StandardSystemProperty.OS_NAME;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.Math.min;
    import static java.nio.file.attribute.PosixFilePermission.OWNER_READ;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

     *
     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    public class Os {
    
        /**
         * The OS Name.
         */
        public static final String OS_NAME = System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
    
        /**
         * The OA architecture.
         */
        public static final String OS_ARCH = System.getProperty("os.arch").toLowerCase(Locale.ENGLISH);
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

                return false;
            }
    
            boolean active = ensureAtLeastOneNonNull(os);
    
            String actualOsName = context.getSystemProperties()
                    .getOrDefault("os.name", Os.OS_NAME)
                    .toLowerCase(Locale.ENGLISH);
            String actualOsArch = context.getSystemProperties()
                    .getOrDefault("os.arch", Os.OS_ARCH)
                    .toLowerCase(Locale.ENGLISH);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top