Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EagerOperation (0.18 sec)

  1. tensorflow/compiler/mlir/tfr/integration/node_expansion_pass.cc

                                    "The number of nodes being op expanded.");
    }  // namespace
    
    namespace tfr {
    
    Status CompositeOpExpansion::Run(EagerOperation* orig_op,
                                     std::unique_ptr<EagerOperation>* out_op) {
      if (!IsEnabled()) return absl::OkStatus();
      // This can be the default cpu device.
      if (orig_op->Device() != kVariantDeviceNull) return absl::OkStatus();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Feb 25 16:22:36 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/integration/node_expansion_pass.h

    class CompositeOpExpansion : public EagerOpRewrite {
     public:
      CompositeOpExpansion(string name, string file, string line)
          : EagerOpRewrite(name, file, line) {}
    
      Status Run(EagerOperation* orig_op,
                 std::unique_ptr<tensorflow::EagerOperation>* out_op) override;
    
     private:
      // Whether to run this pass. If this is enabled, the NodeDef will be imported
      // to MLIR even no tf composition file is found.
      bool IsEnabled() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

      TFE_DeleteTensorHandle(h_shares_tensor);
      TFE_DeleteContext(ctx);
    }
    
    tensorflow::AttrValueMap ExtractAttrs(TFE_Op* op) {
      tensorflow::AttrValueMap attr_values;
      tensorflow::EagerOperation* operation =
          tensorflow::OperationFromInterface(tensorflow::unwrap(op));
      operation->Attrs().FillAttrValueMap(&attr_values);
      return attr_values;
    }
    
    TEST(CAPI, TestTFE_OpInferSingleInputAttrs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.cc

        return;
      }
      if (op == nullptr) {
        status->status = tensorflow::errors::InvalidArgument(
            "Got a null or uninitialized `op` argument");
        return;
      }
      tensorflow::EagerOperation* operation =
          OperationFromInterface(tensorflow::unwrap(const_cast<TFE_Op*>(op)));
      operation->MutableAttrs()->Set(attr_name, attr_value);
    }
    
    TF_CAPI_EXPORT extern int TFE_OpGetInputLength(TFE_Op* op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top