Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 153 for getUnit (0.22 sec)

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

        }
    
        for (auto i = 0; i < window_strides.size(); ++i) {
          window_strides_vec.push_back(
              window_strides.getValues<IntegerAttr>()[i].getInt());
        }
    
        for (auto i = 0; i < base_dilations.size(); ++i) {
          base_dilations_vec.push_back(
              base_dilations.getValues<IntegerAttr>()[i].getInt());
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

      if (!int_attr) {
        return func.emitError()
               << attribute.c_str() << " attribute is not set or not an integer";
      }
      builder->Int(attribute.c_str(), int_attr.getInt());
      return success();
    }
    
    LogicalResult ConvertSSDPostProcessFunc::AddFloatAttr(
        func::FuncOp func, DictionaryAttr attrs, const std::string& attribute,
        flexbuffers::Builder* builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc

              builder.getI64IntegerAttr(alias_info.output_index));
          continue;
        }
        // If aliasing attribute already exists, it must match the new value.
        assert(aliasing_attr.getInt() == alias_info.output_index);
      }
    }
    
    void MarkInputOutputAliasesPass::runOnOperation() {
      SmallVector<tf_device::ClusterFuncOp, 4> cluster_funcs;
      ModuleOp module = getOperation();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 04:14:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

        if (!value) {
          return func->emitError()
                 << "'" << attr_name << "' attribute for " << kMaxUnpooling
                 << " does not contain integer values";
        }
        results->push_back(value.getInt());
      }
      return success();
    }
    
    }  // namespace
    
    LogicalResult ConvertMaxUnpoolingFunc::RewriteFunc() {
      func_.eraseBody();
      func_.addEntryBlock();
      func_->setAttr(kTFImplements,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

      mlir::IntegerAttr num_cores_per_replica_attr =
          cluster->getAttrOfType<mlir::IntegerAttr>(kNumCoresPerReplicaAttr);
      if (num_cores_per_replica_attr) {
        return num_cores_per_replica_attr.getInt();
      } else {
        return 1;
      }
    }
    
    // Get the TPUDevicesAndHosts for a cluster that is not replicated.
    mlir::LogicalResult GetTPUDevicesAndHostsNotReplicated(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

      if (cost_recorder_ != nullptr) {
        const auto op_key_attr =
            op->getAttrOfType<mlir::IntegerAttr>(kOpKeyAttrName);
        if (op_key_attr) {
          cost_map_[op] = cost_recorder_->GetCost(op_key_attr.getInt());
          return;
        }
      }
    
      // These ops are cheap regardless of their input sizes.
      //
      // TODO(chky): Find a more scalable way to figure out cheap ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

        return switchn.emitOpError() << "expects a `num_outs` integer attribute";
    
      // Expect num_outs results + 1 control output.
      if (switchn.getNumResults() != num_outs.getInt() + 1)
        return switchn.emitOpError()
               << "expect `num_outs` (" << num_outs.getInt() << ") results but got "
               << (switchn.getNumResults() - 1);
    
      // Check that operand can be broadcasted to each output type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

        inferredReturnTypes.assign({result_type});
        return success();
      }
    
      auto stride_h = op.getStrideHAttr().getInt();
      auto stride_w = op.getStrideWAttr().getInt();
      auto dilation_h = op.getDilationHFactorAttr().getInt();
      auto dilation_w = op.getDilationWFactorAttr().getInt();
    
      // We don't have EXPLICIT PADDING in TfLite.
      auto paddings = op.getPadding();
      tensorflow::Padding padding;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

    import jcifs.smb1.Config;
    import jcifs.smb1.util.Hexdump;
    
    abstract class SmbComTransaction extends ServerMessageBlock implements Enumeration {
    
        private static final int DEFAULT_MAX_DATA_COUNT =
                Config.getInt( "jcifs.smb1.smb.client.transaction_buf_size",
                        SmbComTransaction.TRANSACTION_BUF_SIZE ) - 512;
    
        // relative to headerStart
        private static final int PRIMARY_SETUP_OFFSET        = 61;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

      llvm::SmallSet<int, 4> dynamic_arg_idx_set;
      if (dynamic_arg_idx) {
        for (auto idx : dynamic_arg_idx.getValue()) {
          dynamic_arg_idx_set.insert(mlir::dyn_cast<IntegerAttr>(idx).getInt());
        }
      }
    
      for (auto operand_type_and_idx : llvm::enumerate(op.getOperandTypes())) {
        Type operand_type = operand_type_and_idx.value();
        int index = operand_type_and_idx.index();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top