Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

opt.inputDims is a required argument but is not enforced #14

@vzhong

Description

@vzhong

In this line
https://github.com/twitter/torch-dataset/blob/master/lua/Batch.lua#L19

applyInputDims is called with opt.inputDims which by default is not set. However applyInputDims expects this argument and crashes (eg. assert fails) if this is not set.

I think there should be either

  1. Documentation specifying what opt.inputDims is
  2. Some automatic way of setting a default opt.InputDims.

Otherwise the README example under Multiple Indices fail when sampledBatcher is called:

   local getBatch, numBatches = dataset.sampledBatcher({
      batchSize = 1,
      samplerKind = { 'part-linear', 'part-linear-permutation' },   -- sample the first linearily, the second with a permutation
      processor = processor,
   })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions