Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 242 for get_attr (0.26 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

    TF::ConstOp GetI64ConstantTensor(PatternRewriter &rewriter,
                                     ArrayRef<int64_t> values, Location location) {
      auto cst_attr = rewriter.getI64TensorAttr(values);
      return rewriter.create<TF::ConstOp>(location, cst_attr.getType(), cst_attr);
    }
    
    // Rewrites broadcast->reshape to a reshape->broadcast that reduces
    // the rank of the input and output of the broadcast.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc

            operands_per_replica, replicated_input->getAttrs());
        replicate_op.setIsPacked(is_packed);
        operands_per_core.push_back(replicate_op);
      }
    
      auto pi = builder.create<TF::TPUPartitionedInputV2Op>(
          first_partitioned_input.getLoc(), replicated_input.getType(),
          operands_per_core, first_partitioned_input->getAttrs());
      pi.setIsPacked(false);  // inputs are now ops--not resources
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 24 23:08:55 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

          return failure();
        }
        res.push_back(signed_lhs_val / signed_rhs_val);
      }
    
      auto res_attr = DenseElementsAttr::get(
          const_oprs[0].getType().cast<RankedTensorType>(), res);
      rewriter.replaceOpWithNewOp<stablehlo::ConstantOp>(adaptor.value().Op(),
                                                         res_attr);
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s

    	MOVD $·Fremovexattr(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_FgetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Fgetxattr(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_FsetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Fsetxattr(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      if (!result_ty || !result_ty.hasStaticShape()) return {};
    
      if (result_ty == input.getType()) return input;
    
      DenseIntElementsAttr cst_attr;
      if (!matchPattern(input, m_Constant(&cst_attr))) return {};
      if (!cst_attr.isSplat()) return {};
    
      return DenseElementsAttr::get(result_ty, cst_attr.getSplatValue<Attribute>());
    }
    
    //===----------------------------------------------------------------------===//
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go

    	SYS_GETXATTR             = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); }
    	SYS_LGETXATTR            = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); }
    	SYS_FGETXATTR            = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 25.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/convert_to_legacy_compile_and_replicate_attributes.cc

        if (failed(TF::HasValidCompilationAndReplicationAttributes(*op)))
          return WalkResult::interrupt();
        if (op->hasAttr(TF::kReplicationInfoAttr)) {
          op->setAttr(TF::kTpuReplicateAttr, op->getAttr(TF::kReplicationInfoAttr));
          op->removeAttr(TF::kReplicationInfoAttr);
          op->removeAttr(TF::kCompileDeviceTypeAttr);
        }
        return mlir::WalkResult::advance();
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_device_ops.cc

                 << type_string() << " on an XLA device. This should never happen.";
    }
    
    XlaAssignVariableOp::XlaAssignVariableOp(OpKernelConstruction* c)
        : OpKernel(c) {
      OP_REQUIRES_OK(c, c->GetAttr("dtype", &dtype_));
    }
    
    void XlaAssignVariableOp::Compute(OpKernelContext* context) {
      OP_REQUIRES(context, dtype_ == context->input(1).dtype(),
                  errors::InvalidArgument(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/infeed_ops_xla_adjust_layout.cc

        SmallVector<Type> result_types(op.getResultTypes().begin(),
                                       op.getResultTypes().end());
        if (!op->getAttr("layout")) {
          auto layout = mlir::GetTPUInfeedLayout(result_types, builder);
          if (failed(layout)) return;
    
          op->setAttr("layout", layout.value());
        }
      }
    };
    
    void InfeedsOpsXlaAdjustLayout::runOnOperation() {
      getOperation().walk(runOnInfeedOp);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. src/syscall/zsysnum_netbsd_amd64.go

    	SYS_GETXATTR             = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); }
    	SYS_LGETXATTR            = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); }
    	SYS_FGETXATTR            = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 25.7K bytes
    - Viewed (0)
Back to top